main
Last change
on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
1.6 KB
|
Rev | Line | |
---|
[79a0317] | 1 | 'use strict';
|
---|
| 2 |
|
---|
| 3 | module.exports = {
|
---|
| 4 | extends: ['ash-nazg/sauron-node'],
|
---|
| 5 | parserOptions: {
|
---|
| 6 | sourceType: 'module'
|
---|
| 7 | },
|
---|
| 8 | env: {
|
---|
| 9 | node: true,
|
---|
| 10 | browser: true
|
---|
| 11 | },
|
---|
| 12 | overrides: [
|
---|
| 13 | {
|
---|
| 14 | files: '*.md',
|
---|
| 15 | processor: 'markdown/markdown'
|
---|
| 16 | },
|
---|
| 17 | {
|
---|
| 18 | files: '**/*.md/*.js',
|
---|
| 19 | globals: {
|
---|
| 20 | require: true,
|
---|
| 21 | StackBlur: true,
|
---|
| 22 | width: true,
|
---|
| 23 | height: true,
|
---|
| 24 | top_x: true,
|
---|
| 25 | top_y: true,
|
---|
| 26 | radius: true,
|
---|
| 27 | imageData: true,
|
---|
| 28 | sourceImage: true,
|
---|
| 29 | targetCanvas: true,
|
---|
| 30 | blurAlphaChannel: true
|
---|
| 31 | },
|
---|
| 32 | rules: {
|
---|
| 33 | 'import/unambiguous': 0,
|
---|
| 34 | 'import/no-commonjs': 0,
|
---|
| 35 | 'node/no-missing-import': 0,
|
---|
| 36 | 'import/no-unresolved': ['error', {
|
---|
| 37 | ignore: ['stackblur-canvas']
|
---|
| 38 | }],
|
---|
| 39 | 'node/no-missing-require': ['error', {
|
---|
| 40 | allowModules: ['stackblur-canvas']
|
---|
| 41 | }],
|
---|
| 42 | 'no-shadow': 0,
|
---|
| 43 | 'no-unused-vars': ['error', {varsIgnorePattern: 'StackBlur'}]
|
---|
| 44 | }
|
---|
| 45 | }, {
|
---|
| 46 | files: 'rollup.config.js',
|
---|
| 47 | env: {
|
---|
| 48 | node: true
|
---|
| 49 | }
|
---|
| 50 | }, {
|
---|
| 51 | files: '.*.js',
|
---|
| 52 | extends: ['plugin:node/recommended-script'],
|
---|
| 53 | rules: {
|
---|
| 54 | 'import/unambiguous': 0,
|
---|
| 55 | 'import/no-commonjs': 0
|
---|
| 56 | }
|
---|
| 57 | }
|
---|
| 58 | ],
|
---|
| 59 | rules: {
|
---|
| 60 | 'jsdoc/require-returns': ['error', {exemptedBy: ['see']}],
|
---|
| 61 | // Handled by Babel
|
---|
| 62 | 'node/no-unsupported-features/es-syntax': 0,
|
---|
| 63 |
|
---|
| 64 | // Would be good, but as not supported in older Node and browsers,
|
---|
| 65 | // would need polyfill for `Number.isNaN`
|
---|
| 66 | 'unicorn/prefer-number-properties': 0,
|
---|
| 67 | 'unicorn/prefer-math-trunc': 0
|
---|
| 68 | }
|
---|
| 69 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.