Skip to content

Commit

Permalink
🚨 Adding ESLint to DeepScan
Browse files Browse the repository at this point in the history
  • Loading branch information
i1u5 committed Apr 6, 2020
1 parent d6aafb7 commit c5cb54b
Show file tree
Hide file tree
Showing 4 changed files with 879 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules

.vscode
.npmrc
.github

*.d.ts
53 changes: 53 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
module.exports = {
root: true,
env: {
browser: true,
es6: true
},
extends: "eslint:recommended",
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly"
},
parserOptions: {
ecmaVersion: 2020
},
rules: {
semi: ["warn", "always", { omitLastInOneLineBlock: true }],
quotes: "off",
indent: "off",
camelcase: "off",
"comma-dangle": ["warn", "never"],
"linebreak-style": "off",
"no-console": "off",
"no-var": "off",
"no-undef": "off"
},
overrides: [
{
files: "**/*.ts",
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./tsconfig.json"
},
rules: {
semi: ["warn", "always", { omitLastInOneLineBlock: true }],
quotes: "off",
indent: "off",
"comma-dangle": ["warn", "never"],
"linebreak-style": "off",
"no-console": "off",
"no-var": "off",
"no-undef": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-explicit-any": "off"
},
plugins: ["@typescript-eslint"]
}
]
};
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@
"@types/node": "^13.11.0",
"@types/prettier": "^2.0.0",
"@types/semver": "^7.1.0",
"@typescript-eslint/eslint-plugin": "^2.26.0",
"@typescript-eslint/parser": "^2.26.0",
"chalk": "^4.0.0",
"eslint": "^6.8.0",
"execa": "^4.0.0",
"glob": "^7.1.6",
"mongodb": "^3.5.5",
"prettier": "^2.0.2",
"prettier": "^2.0.3",
"semver": "^7.1.3",
"source-map-support": "^0.5.16",
"typescript": "^3.8.3"
Expand Down
Loading

0 comments on commit c5cb54b

Please sign in to comment.