Skip to content

Commit

Permalink
chore: add eslint to project
Browse files Browse the repository at this point in the history
  • Loading branch information
waylaidwanderer committed Mar 8, 2023
1 parent a2f109a commit ec84815
Show file tree
Hide file tree
Showing 5 changed files with 3,565 additions and 77 deletions.
28 changes: 28 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module.exports = {
env: {
es2021: true,
node: true,
},
extends: 'airbnb-base',
overrides: [
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {
'indent': ['error', 4, { 'SwitchCase': 1 }],
'max-len': [
'error', {
'code': 150,
'ignoreStrings': true,
'ignoreTemplateLiterals': true,
'ignoreComments': true,
}],
'linebreak-style': 0,
'arrow-parens': [2, 'as-needed', { 'requireForBlockBody': true }],
'no-plusplus': ['error', { 'allowForLoopAfterthoughts': true }],
'no-console': 'off',
'import/extensions': 'off',
},
};
6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/jsLinters/eslint.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ec84815

Please sign in to comment.