2017-06-03 02:55:23 +08:00
|
|
|
module.exports = {
|
2021-04-10 02:02:18 +08:00
|
|
|
extends: 'airbnb',
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 2020,
|
|
|
|
},
|
2023-08-15 04:52:35 +08:00
|
|
|
plugins: ['react', 'jsx-a11y', 'import'],
|
2021-04-10 02:02:18 +08:00
|
|
|
env: {
|
|
|
|
es6: true,
|
|
|
|
node: true,
|
|
|
|
browser: true,
|
|
|
|
meteor: true,
|
|
|
|
jasmine: true,
|
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
'no-underscore-dangle': 0,
|
|
|
|
'import/extensions': [2, 'never'],
|
|
|
|
'import/no-absolute-path': 0,
|
|
|
|
'import/no-unresolved': 0,
|
|
|
|
'import/no-extraneous-dependencies': 1,
|
|
|
|
'react/prop-types': 1,
|
|
|
|
'jsx-a11y/no-access-key': 0,
|
|
|
|
'react/jsx-props-no-spreading': 'off',
|
2021-04-16 21:45:40 +08:00
|
|
|
'max-classes-per-file': ['error', 2],
|
2021-04-10 02:02:18 +08:00
|
|
|
},
|
|
|
|
globals: {
|
|
|
|
browser: 'writable',
|
|
|
|
},
|
2023-08-15 04:52:35 +08:00
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: ['*.ts', '*.tsx'],
|
|
|
|
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'airbnb'],
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
plugins: ['@typescript-eslint'],
|
|
|
|
},
|
|
|
|
],
|
2017-06-03 02:55:23 +08:00
|
|
|
};
|