31 lines
809 B
JavaScript
31 lines
809 B
JavaScript
module.exports = {
|
|
parser: "@typescript-eslint/parser",
|
|
extends: [
|
|
"preact",
|
|
"plugin:@typescript-eslint/recommended"
|
|
],
|
|
ignorePatterns: [
|
|
"build/"
|
|
],
|
|
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-return-assign': 0,
|
|
'no-console': [0],
|
|
// i like loops
|
|
'no-plusplus': [0],
|
|
|
|
'no-await-in-loop': [0],
|
|
indent: ['error', 4],
|
|
'keyword-spacing': ['error'],
|
|
'key-spacing': ['error'],
|
|
},
|
|
}; |