|
1 | 1 | 'use strict';
|
2 | 2 |
|
3 |
| -const js = require('@eslint/js'); |
4 |
| - |
5 |
| - |
6 |
| -module.exports = [ |
7 |
| - js.configs.recommended, |
8 |
| - { |
9 |
| - languageOptions: { |
10 |
| - 'parserOptions': { |
11 |
| - 'ecmaVersion': 2022, |
12 |
| - sourceType: 'commonjs' |
13 |
| - }, |
14 |
| - globals: { |
15 |
| - require: 'readonly', |
16 |
| - Buffer: 'readonly', |
17 |
| - module: 'readonly', |
18 |
| - console: 'readonly', |
19 |
| - __dirname: 'readonly', |
20 |
| - process: 'readonly', |
21 |
| - }, |
22 |
| - }, |
23 |
| - 'rules': { |
24 |
| - 'arrow-parens': ['error', 'always'], |
25 |
| - 'no-trailing-spaces': [ |
26 |
| - 'error', |
27 |
| - { |
28 |
| - 'skipBlankLines': true |
29 |
| - } |
30 |
| - ], |
31 |
| - 'indent': [ |
32 |
| - 'error', |
33 |
| - 'tab', |
34 |
| - { |
35 |
| - 'SwitchCase': 1 |
36 |
| - } |
37 |
| - ], |
38 |
| - 'operator-linebreak': [ |
39 |
| - 'error', |
40 |
| - 'after', |
41 |
| - { |
42 |
| - 'overrides': { |
43 |
| - '?': 'before', |
44 |
| - ':': 'before' |
45 |
| - } |
46 |
| - } |
47 |
| - ], |
48 |
| - 'max-len': ['error', 110], |
49 |
| - 'quotes': [ |
50 |
| - 'error', |
51 |
| - 'single' |
52 |
| - ], |
53 |
| - 'semi': [ |
54 |
| - 'error', |
55 |
| - 'always' |
56 |
| - ], |
57 |
| - 'no-multiple-empty-lines': ['error', { 'max': 3, 'maxEOF': 1, 'maxBOF': 1 }], |
58 |
| - 'keyword-spacing': ['error', { 'before': true, 'after': true }], |
59 |
| - 'space-before-blocks': ['error'], |
60 |
| - 'space-before-function-paren': [ |
61 |
| - 'error', {'anonymous': 'always', 'named': 'never', 'asyncArrow': 'always'} |
62 |
| - ], |
63 |
| - 'camelcase': ['error'], |
64 |
| - 'no-tabs': [0], |
65 |
| - 'no-unused-vars': [ |
66 |
| - 'error', |
67 |
| - { |
68 |
| - 'argsIgnorePattern': '^_', |
69 |
| - 'varsIgnorePattern': '^_', |
70 |
| - 'caughtErrorsIgnorePattern': '^_' |
71 |
| - } |
72 |
| - ], |
73 |
| - 'global-require': [0], |
74 |
| - 'no-underscore-dangle': [0], |
75 |
| - 'no-plusplus': [0], |
76 |
| - 'no-shadow': [0], |
77 |
| - 'node/no-unpublished-require': [0], |
78 |
| - 'no-process-exit': [0], |
79 |
| - 'linebreak-style': [0], |
80 |
| - 'node/no-missing-require': [0], |
81 |
| - 'no-console': [0], |
82 |
| - 'node/no-unsupported-features/es-builtins': 0, |
83 |
| - 'node/no-unsupported-features/node-builtins': 0, |
84 |
| - 'func-names': [ |
85 |
| - 'error', |
86 |
| - 'never', |
87 |
| - { |
88 |
| - 'generators': 'never' |
89 |
| - } |
90 |
| - ] |
91 |
| - } |
92 |
| - }, |
93 |
| -]; |
| 3 | +module.exports = module.exports = require('addon-tools-raub/utils/eslint-common'); |
0 commit comments