mirror of
https://github.com/ansible/awx.git
synced 2026-03-23 20:05:03 -02:30
73 lines
1.7 KiB
JavaScript
73 lines
1.7 KiB
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
root: true,
|
|
extends: [
|
|
'airbnb-base'
|
|
],
|
|
plugins: [
|
|
'import',
|
|
'disable'
|
|
],
|
|
settings: {
|
|
'import/resolver': {
|
|
webpack: {
|
|
config: path.join(__dirname, 'build/webpack.development.js')
|
|
}
|
|
},
|
|
'eslint-plugin-disable': {
|
|
paths: {
|
|
import: ['**/build/*.js']
|
|
}
|
|
}
|
|
},
|
|
env: {
|
|
browser: true,
|
|
node: true
|
|
},
|
|
globals: {
|
|
angular: true,
|
|
d3: true,
|
|
$: true,
|
|
_: true,
|
|
codemirror: true,
|
|
jsyaml: true,
|
|
crypto: true
|
|
},
|
|
rules: {
|
|
'arrow-parens': 'off',
|
|
'comma-dangle': 'off',
|
|
indent: ['error', 4, {
|
|
SwitchCase: 1
|
|
}],
|
|
'max-len': ['error', {
|
|
code: 100,
|
|
ignoreStrings: true,
|
|
ignoreTemplateLiterals: true,
|
|
}],
|
|
'no-continue': 'off',
|
|
'no-debugger': 'off',
|
|
'no-mixed-operators': 'off',
|
|
'no-param-reassign': 'off',
|
|
'no-plusplus': 'off',
|
|
'no-underscore-dangle': 'off',
|
|
'no-use-before-define': 'off',
|
|
'no-multiple-empty-lines': ['error', { max: 1 }],
|
|
'object-curly-newline': 'off',
|
|
'space-before-function-paren': ['error', 'always'],
|
|
'no-trailing-spaces': ['error'],
|
|
'prefer-destructuring': ['error', {
|
|
'VariableDeclarator': {
|
|
'array': false,
|
|
'object': true
|
|
},
|
|
'AssignmentExpression': {
|
|
'array': false,
|
|
'object': true
|
|
}
|
|
}, {
|
|
'enforceForRenamedProperties': false
|
|
}]
|
|
}
|
|
};
|