2020-09-04 18:02:20 +00:00
|
|
|
module.exports = {
|
2020-10-29 21:44:28 +00:00
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
commonjs: true,
|
|
|
|
es6: true,
|
|
|
|
node: true,
|
|
|
|
jquery: true,
|
2020-09-04 18:02:20 +00:00
|
|
|
},
|
2020-10-29 21:44:28 +00:00
|
|
|
extends: 'airbnb-base',
|
|
|
|
globals: {
|
|
|
|
Atomics: 'readonly',
|
|
|
|
SharedArrayBuffer: 'readonly',
|
2020-09-04 18:02:20 +00:00
|
|
|
},
|
2020-10-29 21:44:28 +00:00
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 2020,
|
2020-09-04 18:02:20 +00:00
|
|
|
},
|
2020-10-29 21:44:28 +00:00
|
|
|
rules: {
|
|
|
|
indent: [
|
2020-09-04 18:02:20 +00:00
|
|
|
'error',
|
2020-10-29 21:44:28 +00:00
|
|
|
'tab',
|
2020-09-04 18:02:20 +00:00
|
|
|
],
|
2020-10-29 21:44:28 +00:00
|
|
|
'no-tabs': 0,
|
|
|
|
'no-use-before-define': 0,
|
|
|
|
'no-console': 0,
|
2020-09-04 18:02:20 +00:00
|
|
|
'linebreak-style': [
|
|
|
|
'error',
|
2020-10-29 21:44:28 +00:00
|
|
|
'unix',
|
2020-09-04 18:02:20 +00:00
|
|
|
],
|
2020-10-29 21:44:28 +00:00
|
|
|
'max-len': 0,
|
|
|
|
quotes: [
|
2020-09-04 18:02:20 +00:00
|
|
|
'error',
|
2020-10-29 21:44:28 +00:00
|
|
|
'single',
|
2020-09-04 18:02:20 +00:00
|
|
|
],
|
2020-10-29 21:44:28 +00:00
|
|
|
semi: [
|
2020-09-04 18:02:20 +00:00
|
|
|
'error',
|
2020-10-29 21:44:28 +00:00
|
|
|
'always',
|
2020-09-04 18:02:20 +00:00
|
|
|
],
|
|
|
|
'no-prototype-builtins': 0,
|
|
|
|
'comma-dangle': ['error', 'always-multiline'],
|
|
|
|
'block-scoped-var': ['error'],
|
|
|
|
'default-case': ['error'],
|
|
|
|
'default-param-last': ['error'],
|
|
|
|
'dot-location': ['error', 'property'],
|
2020-10-29 21:44:28 +00:00
|
|
|
eqeqeq: ['error'],
|
2020-09-04 18:02:20 +00:00
|
|
|
'no-eval': ['error'],
|
|
|
|
'no-eq-null': ['error'],
|
|
|
|
'no-floating-decimal': ['error'],
|
|
|
|
'no-trailing-spaces': ['error'],
|
2020-10-29 21:44:28 +00:00
|
|
|
'brace-style': [2, '1tbs', { allowSingleLine: true }],
|
2020-09-04 18:02:20 +00:00
|
|
|
},
|
2020-10-29 21:44:28 +00:00
|
|
|
ignorePatterns: [
|
|
|
|
'*.min.js',
|
2020-09-04 18:02:20 +00:00
|
|
|
],
|
2020-10-29 21:44:28 +00:00
|
|
|
};
|