mirror of
https://github.com/UniversityOfHelsinkiCS/ohtuilmo.git
synced 2026-10-12 19:03:41 +03:00
chore: migrate to oxlint
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
build
|
||||
node_modules
|
||||
public
|
||||
@@ -1,33 +0,0 @@
|
||||
module.exports = {
|
||||
env: {
|
||||
es6: true,
|
||||
node: true,
|
||||
browser: true,
|
||||
},
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
'plugin:react/recommended',
|
||||
'plugin:react/jsx-runtime',
|
||||
'plugin:react-hooks/recommended',
|
||||
],
|
||||
parserOptions: {
|
||||
ecmaVersion: 'latest',
|
||||
sourceType: 'module',
|
||||
},
|
||||
settings: { react: { version: '16.8' } },
|
||||
plugins: ['react', 'react-refresh'],
|
||||
rules: {
|
||||
'react/jsx-uses-react': 'error',
|
||||
'react/jsx-uses-vars': 'error',
|
||||
indent: ['error', 2],
|
||||
quotes: ['error', 'single'],
|
||||
semi: ['error', 'never'],
|
||||
eqeqeq: 'error',
|
||||
'no-trailing-spaces': 'error',
|
||||
'object-curly-spacing': ['error', 'always'],
|
||||
'arrow-spacing': ['error', { before: true, after: true }],
|
||||
'no-console': 0,
|
||||
'react/prop-types': 0,
|
||||
'no-unused-vars': 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
||||
"ignorePatterns": ["build", "public"],
|
||||
"plugins": ["react"],
|
||||
"categories": {
|
||||
"correctness": "error"
|
||||
},
|
||||
"env": {
|
||||
"builtin": true
|
||||
},
|
||||
"settings": {
|
||||
"react": {
|
||||
"version": "16.8"
|
||||
}
|
||||
},
|
||||
"rules": {
|
||||
"eqeqeq": "error",
|
||||
"react-hooks/exhaustive-deps": "warn"
|
||||
}
|
||||
}
|
||||
Generated
+385
-2311
File diff suppressed because it is too large
Load Diff
@@ -31,18 +31,15 @@
|
||||
"test:docker:down": "docker compose -f ../compose.local-test.yaml --profile e2e down",
|
||||
"test": "CYPRESS_baseUrl=http://localhost:5000 npx cypress open",
|
||||
"test:headless": "CYPRESS_VIDEO=false CYPRESS_baseUrl=http://localhost:5000 npx cypress run",
|
||||
"lint": "eslint src/",
|
||||
"lint:fix": "eslint --fix src/"
|
||||
"lint": "oxlint src/",
|
||||
"lint:fix": "oxlint --fix src/"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vitejs/plugin-react": "^4.2.1",
|
||||
"@vitejs/plugin-react-refresh": "^1.3.6",
|
||||
"cypress": "^13.17.0",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-plugin-react": "^7.34.1",
|
||||
"eslint-plugin-react-hooks": "^4.6.0",
|
||||
"eslint-plugin-react-refresh": "^0.4.6",
|
||||
"husky": "^1.2.0",
|
||||
"oxlint": "^1.77.0",
|
||||
"vite": "^5.2.0"
|
||||
},
|
||||
"husky": {
|
||||
|
||||
Reference in New Issue
Block a user