48 lines
724 B
JavaScript
48 lines
724 B
JavaScript
module.exports = {
|
|
env: {
|
|
browser: true,
|
|
commonjs: true,
|
|
es6: true,
|
|
node: true,
|
|
jquery: true,
|
|
},
|
|
extends: 'airbnb-base',
|
|
globals: {
|
|
Atomics: 'readonly',
|
|
SharedArrayBuffer: 'readonly',
|
|
},
|
|
parserOptions: {
|
|
ecmaVersion: 2020,
|
|
},
|
|
rules: {
|
|
indent: [
|
|
'error',
|
|
'tab',
|
|
],
|
|
'no-tabs': 0,
|
|
'no-console': 0,
|
|
'max-len': 0,
|
|
'no-use-before-define': [
|
|
'error',
|
|
{
|
|
variables: false,
|
|
},
|
|
],
|
|
'no-mixed-operators': [
|
|
'error',
|
|
{
|
|
groups: [
|
|
['&', '|', '^', '~', '<<', '>>', '>>>'],
|
|
['==', '!=', '===', '!==', '>', '>=', '<', '<='],
|
|
['&&', '||'],
|
|
['in', 'instanceof'],
|
|
],
|
|
allowSamePrecedence: true,
|
|
},
|
|
],
|
|
},
|
|
ignorePatterns: [
|
|
'*.min.js',
|
|
],
|
|
};
|