30 lines
814 B
JavaScript
Executable File
30 lines
814 B
JavaScript
Executable File
module.exports = {
|
|
extends: 'airbnb',
|
|
env: {
|
|
"browser": true,
|
|
"node": true
|
|
},
|
|
rules: {
|
|
// prevents stupid complaints a la
|
|
// (req) {
|
|
// req.something = x;
|
|
// }
|
|
'no-param-reassign': [2, { props: false }],
|
|
'no-multi-spaces': [0],
|
|
'max-len': ['error', 120],
|
|
'import/no-extraneous-dependencies': [0],
|
|
'prefer-arrow-callback': [0],
|
|
'arrow-body-style': [0],
|
|
'no-console': [0],
|
|
// i like loops
|
|
'no-plusplus': [0],
|
|
'no-await-in-loop': [0],
|
|
'indent': ['error', 4],
|
|
|
|
// for preact
|
|
"react/react-in-jsx-scope": [0],
|
|
"react/jsx-indent": [2, 4],
|
|
"react/jsx-uses-react": 1,
|
|
"react/jsx-uses-vars": 1
|
|
},
|
|
}; |