Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
move overrides into rules file.
Browse files Browse the repository at this point in the history
  • Loading branch information
bradgarropy committed Jun 11, 2021
1 parent c0c1e3e commit ea2c4a9
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ module.exports = {
node: true,
},
extends: ["./rules/typescript.js"],
overrides: [
{
files: ["*.ts", "*.tsx"],
extends: ["plugin:@typescript-eslint/recommended"],
},
],
parserOptions: {
ecmaFeatures: {},
sourceType: "module",
Expand Down
59 changes: 59 additions & 0 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bradgarropy/eslint-config-typescript",
"version": "1.0.1",
"version": "1.0.2",
"description": "💎 eslint configuration",
"keywords": [
"eslint",
Expand Down Expand Up @@ -33,6 +33,7 @@
"typescript": "^4.1.2"
},
"devDependencies": {
"@types/react": "^17.0.11",
"@typescript-eslint/eslint-plugin": "^4.9.1",
"@typescript-eslint/parser": "^4.9.1",
"eslint": "^7.15.0",
Expand Down
6 changes: 6 additions & 0 deletions rules/typescript.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
module.exports = {
rules: {},
overrides: [
{
files: ["*.ts", "*.tsx"],
extends: ["plugin:@typescript-eslint/recommended"],
},
],
}

0 comments on commit ea2c4a9

Please sign in to comment.