30 lines
781 B
JavaScript
30 lines
781 B
JavaScript
module.exports = {
|
|
env: {
|
|
browser: true,
|
|
es2021: true,
|
|
},
|
|
extends: ['airbnb-base'],
|
|
overrides: [],
|
|
parserOptions: {
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module',
|
|
},
|
|
// plugins: ["import"],
|
|
rules: {
|
|
'import/extensions': ['error', 'always'],
|
|
'import/prefer-default-export': ['off'],
|
|
'import/no-unresolved': ['error', { ignore: ['^http'] }],
|
|
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
|
'max-classes-per-file': ['off'],
|
|
'no-param-reassign': ['off'],
|
|
'no-plusplus': ['off'],
|
|
'no-restricted-syntax': ['off'],
|
|
'max-len': ['warn', 120],
|
|
'no-console': ['off'],
|
|
'no-return-assign': ['off'],
|
|
'no-multi-assign': ['off'],
|
|
'no-constant-condition': ['off'],
|
|
'no-await-in-loop': ['off'],
|
|
},
|
|
};
|