Skip to content

Commit

Permalink
Add ESLint configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Jun 22, 2022
1 parent b5176b5 commit 7566276
Show file tree
Hide file tree
Showing 5 changed files with 176 additions and 265 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist/
docs/
_develop
41 changes: 41 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"extends": ["airbnb-base", "airbnb-typescript/base", "prettier"],
"parserOptions": {
"project": "./tsconfig.json"
},
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"plugins": ["prettier"],
"settings": {
"import/resolver": {
"webpack": {
"config": "_develop/webpack.config.js"
}
}
},
"rules": {
"class-methods-use-this": "off",
"import/no-cycle": "off",
"no-restricted-exports": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/lines-between-class-members": "off",
"@typescript-eslint/space-before-function-paren": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/quotes": "off",
"@typescript-eslint/comma-dangle": "off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": ["_develop/*.js", "test/**/*.js"]
}
],
"no-param-reassign": "off",
"no-use-before-define": ["error", { "functions": false, "classes": false }],
"import/named": "error",
"max-classes-per-file": "off",
"prettier/prettier": "error"
}
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.*
!.eslintrc.json
!.eslintignore

/dist
/node_modules
/selenium
Expand Down
Loading

0 comments on commit 7566276

Please sign in to comment.