Skip to content

Commit fc46d4e

Browse files
author
Rogerio Felix
committed
config eslint
1 parent 8650f58 commit fc46d4e

File tree

6 files changed

+401
-97
lines changed

6 files changed

+401
-97
lines changed

.eslintrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"root": true,
3+
"plugins": ["@typescript-eslint"],
4+
"extends": [
5+
"next",
6+
"next/core-web-vitals",
7+
"plugin:@typescript-eslint/recommended",
8+
"prettier"
9+
],
10+
"parser": "@typescript-eslint/parser",
11+
"rules": {
12+
"@typescript-eslint/no-unused-vars": "warn",
13+
"@typescript-eslint/no-explicit-any": "warn",
14+
"@typescript-eslint/no-empty-function": "warn",
15+
"@typescript-eslint/no-empty-interface": "warn",
16+
"no-vars": "off",
17+
"no-var": "off",
18+
"prefer-const": "off",
19+
"react/jsx-no-target-blank": "warn",
20+
"@next/next/no-sync-scripts": "warn",
21+
"@next/next/no-img-element": "off",
22+
"no-unused-vars": "warn"
23+
},
24+
"settings": {
25+
"react": {
26+
"version": "detect"
27+
}
28+
},
29+
"ignorePatterns": ["**/*.js", "*.lock", "*.html"]
30+
}

.prettierrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"semi": false,
3+
"trailingComma": "es5",
4+
"singleQuote": true,
5+
"tabWidth": 2,
6+
"useTabs": false
7+
}

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,20 @@
3636
},
3737
"devDependencies": {
3838
"@babel/core": "^7.24.5",
39+
"@babel/eslint-parser": "^7.24.5",
40+
"@babel/eslint-plugin": "^7.24.5",
3941
"@babel/plugin-proposal-class-properties": "^7.18.6",
4042
"@babel/preset-env": "^7.24.5",
4143
"@babel/preset-react": "^7.24.1",
4244
"@types/node": "^20.12.12",
4345
"@types/react": "^18.3.2",
4446
"@types/react-dom": "^18.3.0",
45-
"eslint": "^9.3.0",
46-
"eslint-config-next": "14.2.3",
47+
"@typescript-eslint/eslint-plugin": "^7.10.0",
48+
"@typescript-eslint/parser": "^7.10.0",
49+
"eslint": "^8.57.0",
50+
"eslint-config-next": "^14.2.3",
51+
"eslint-config-prettier": "^9.1.0",
52+
"prettier": "^3.2.5",
4753
"rollup": "^4.17.2",
4854
"rollup-plugin-alias": "^2.2.0",
4955
"rollup-plugin-auto-external": "^2.0.0",

0 commit comments

Comments
 (0)