mirror of
https://github.com/mantinedev/next-app-template.git
synced 2025-11-10 04:22:01 +10:00
Migrate to ESLint 9
This commit is contained in:
@ -1,3 +0,0 @@
|
|||||||
*.cjs
|
|
||||||
*.mjs
|
|
||||||
*.js
|
|
||||||
@ -1,17 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
extends: ['mantine', 'plugin:@next/next/recommended', 'plugin:jest/recommended'],
|
|
||||||
plugins: ['testing-library', 'jest'],
|
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
files: ['**/?(*.)+(spec|test).[jt]s?(x)'],
|
|
||||||
extends: ['plugin:testing-library/react'],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
parserOptions: {
|
|
||||||
project: './tsconfig.json',
|
|
||||||
},
|
|
||||||
rules: {
|
|
||||||
'react/react-in-jsx-scope': 'off',
|
|
||||||
'import/extensions': 'off',
|
|
||||||
},
|
|
||||||
};
|
|
||||||
4
eslint.config.mjs
Normal file
4
eslint.config.mjs
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
import mantine from 'eslint-config-mantine';
|
||||||
|
import tseslint from 'typescript-eslint';
|
||||||
|
|
||||||
|
export default tseslint.config(...mantine, { ignores: ['**/*.{mjs,cjs,js,d.ts,d.mts}'] });
|
||||||
27
package.json
27
package.json
@ -8,8 +8,9 @@
|
|||||||
"analyze": "ANALYZE=true next build",
|
"analyze": "ANALYZE=true next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"typecheck": "tsc --noEmit",
|
"typecheck": "tsc --noEmit",
|
||||||
"lint": "next lint && npm run lint:stylelint",
|
"lint": "npm run eslint && npm run stylelint",
|
||||||
"lint:stylelint": "stylelint '**/*.css' --cache",
|
"eslint": "next lint",
|
||||||
|
"stylelint": "stylelint '**/*.css' --cache",
|
||||||
"jest": "jest",
|
"jest": "jest",
|
||||||
"jest:watch": "jest --watch",
|
"jest:watch": "jest --watch",
|
||||||
"prettier:check": "prettier --check \"**/*.{ts,tsx}\"",
|
"prettier:check": "prettier --check \"**/*.{ts,tsx}\"",
|
||||||
@ -29,30 +30,23 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.24.7",
|
"@babel/core": "^7.24.7",
|
||||||
|
"@eslint/js": "^9.15.0",
|
||||||
"@ianvs/prettier-plugin-sort-imports": "^4.3.1",
|
"@ianvs/prettier-plugin-sort-imports": "^4.3.1",
|
||||||
"@next/eslint-plugin-next": "^14.2.4",
|
|
||||||
"@storybook/nextjs": "^8.1.10",
|
"@storybook/nextjs": "^8.1.10",
|
||||||
"@storybook/react": "^8.1.10",
|
"@storybook/react": "^8.1.10",
|
||||||
"@testing-library/dom": "^10.1.0",
|
"@testing-library/dom": "^10.1.0",
|
||||||
"@testing-library/jest-dom": "^6.4.6",
|
"@testing-library/jest-dom": "^6.4.6",
|
||||||
"@testing-library/react": "^16.0.0",
|
"@testing-library/react": "^16.0.0",
|
||||||
"@testing-library/user-event": "^14.5.2",
|
"@testing-library/user-event": "^14.5.2",
|
||||||
|
"@types/eslint-plugin-jsx-a11y": "^6",
|
||||||
"@types/jest": "^29.5.12",
|
"@types/jest": "^29.5.12",
|
||||||
"@types/node": "^20.14.8",
|
"@types/node": "^20.14.8",
|
||||||
"@types/react": "18.3.3",
|
"@types/react": "18.3.3",
|
||||||
"@typescript-eslint/eslint-plugin": "^7.13.1",
|
|
||||||
"@typescript-eslint/parser": "^7.13.1",
|
|
||||||
"babel-loader": "^9.1.3",
|
"babel-loader": "^9.1.3",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^9.15.0",
|
||||||
"eslint-config-airbnb": "19.0.4",
|
"eslint-config-mantine": "^4.0.3",
|
||||||
"eslint-config-airbnb-typescript": "^18.0.0",
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
||||||
"eslint-config-mantine": "3.2.0",
|
"eslint-plugin-react": "^7.37.2",
|
||||||
"eslint-plugin-import": "^2.29.1",
|
|
||||||
"eslint-plugin-jest": "^28.6.0",
|
|
||||||
"eslint-plugin-jsx-a11y": "^6.9.0",
|
|
||||||
"eslint-plugin-react": "^7.34.3",
|
|
||||||
"eslint-plugin-react-hooks": "^4.6.2",
|
|
||||||
"eslint-plugin-testing-library": "^6.2.2",
|
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"jest-environment-jsdom": "^29.7.0",
|
"jest-environment-jsdom": "^29.7.0",
|
||||||
"postcss": "^8.4.38",
|
"postcss": "^8.4.38",
|
||||||
@ -64,7 +58,8 @@
|
|||||||
"stylelint": "^16.6.1",
|
"stylelint": "^16.6.1",
|
||||||
"stylelint-config-standard-scss": "^13.1.0",
|
"stylelint-config-standard-scss": "^13.1.0",
|
||||||
"ts-jest": "^29.1.5",
|
"ts-jest": "^29.1.5",
|
||||||
"typescript": "5.5.2"
|
"typescript": "5.5.2",
|
||||||
|
"typescript-eslint": "^8.14.0"
|
||||||
},
|
},
|
||||||
"packageManager": "yarn@4.5.1"
|
"packageManager": "yarn@4.5.1"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user