upgrade packages
fix some rules
This commit is contained in:
parent
37e5969f56
commit
ee26ac9e3e
@ -95,7 +95,7 @@ Prettier is not needed, **ESLint Config Awesome🎉** includes **eslint-plugin-p
|
||||
"endOfLine": "auto",
|
||||
"insertPragma": false,
|
||||
"jsxSingleQuote": false,
|
||||
"printWidth": 80,
|
||||
"printWidth": 100,
|
||||
"proseWrap": "preserve",
|
||||
"quoteProps": "as-needed",
|
||||
"requirePragma": false,
|
||||
|
||||
1
configs/react-typescript.js
vendored
1
configs/react-typescript.js
vendored
@ -26,6 +26,7 @@ module.exports = [
|
||||
rules.common,
|
||||
rules.react,
|
||||
rules.sonar,
|
||||
rules.next,
|
||||
{
|
||||
ignores: [
|
||||
'**/node_modules',
|
||||
|
||||
15
package.json
15
package.json
@ -1,15 +1,16 @@
|
||||
{
|
||||
"name": "@vchikalkin/eslint-config-awesome",
|
||||
"version": "2.0.5",
|
||||
"version": "2.0.6",
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"eslint-config-canonical": "^44.3.31",
|
||||
"eslint-plugin-sonarjs": "^2.0.4"
|
||||
"eslint-config-canonical": "^44.3.33",
|
||||
"eslint-plugin-sonarjs": "^3.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@next/eslint-plugin-next": "^15.0.3",
|
||||
"@next/eslint-plugin-next": "^15.0.4",
|
||||
"eslint": "^9.15.0",
|
||||
"eslint-plugin-canonical": "^5.0.0",
|
||||
"typescript": "^5"
|
||||
},
|
||||
"publishConfig": {
|
||||
@ -30,6 +31,8 @@
|
||||
"zod"
|
||||
],
|
||||
"peerDependencies": {
|
||||
"@next/eslint-plugin-next": "^15.0.3"
|
||||
}
|
||||
"@next/eslint-plugin-next": "^15.0.3",
|
||||
"eslint-plugin-canonical": "^5.0.0"
|
||||
},
|
||||
"packageManager": "pnpm@9.14.2+sha512.6e2baf77d06b9362294152c851c4f278ede37ab1eba3a55fda317a4a17b209f4dbb973fb250a77abc463a341fcb1f17f17cfa24091c4eb319cda0d9b84278387"
|
||||
}
|
||||
|
||||
7502
pnpm-lock.yaml
generated
7502
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -7,7 +7,7 @@ module.exports = {
|
||||
1,
|
||||
{
|
||||
ignoreExporting: false,
|
||||
regex: '^[A-Za-z]+(?:[A-Za-z0-9-]*\\.[A-Za-z0-9-]+)*\\d*$',
|
||||
regex: '^[A-Za-z0-9-]+(?:\.[A-Za-z0-9-]+)*\d*$',
|
||||
},
|
||||
],
|
||||
'func-style': [
|
||||
@ -23,5 +23,34 @@ module.exports = {
|
||||
allow: ['**/*.css'],
|
||||
},
|
||||
],
|
||||
'import/extensions': [
|
||||
'error',
|
||||
'never',
|
||||
{
|
||||
css: 'always',
|
||||
json: 'always',
|
||||
},
|
||||
],
|
||||
'prettier/prettier': [
|
||||
'error',
|
||||
{
|
||||
arrowParens: 'always',
|
||||
bracketSameLine: false,
|
||||
bracketSpacing: true,
|
||||
endOfLine: 'auto',
|
||||
insertPragma: false,
|
||||
jsxSingleQuote: false,
|
||||
printWidth: 100,
|
||||
proseWrap: 'preserve',
|
||||
quoteProps: 'as-needed',
|
||||
requirePragma: false,
|
||||
semi: true,
|
||||
singleQuote: true,
|
||||
tabWidth: 2,
|
||||
trailingComma: 'all',
|
||||
useTabs: false,
|
||||
},
|
||||
{ usePrettierrc: false },
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
@ -1,9 +1,11 @@
|
||||
const common = require('./common');
|
||||
const sonar = require('./sonar');
|
||||
const react = require('./react');
|
||||
const next = require('./next');
|
||||
|
||||
module.exports = {
|
||||
common,
|
||||
react,
|
||||
sonar,
|
||||
next,
|
||||
};
|
||||
|
||||
7
rules/next.js
Normal file
7
rules/next.js
Normal file
@ -0,0 +1,7 @@
|
||||
/** @type {import('eslint').Linter.Config} */
|
||||
module.exports = {
|
||||
name: 'Next rules override',
|
||||
rules: {
|
||||
'@next/next/no-duplicate-head': 'off',
|
||||
},
|
||||
};
|
||||
@ -3,8 +3,5 @@ module.exports = {
|
||||
name: 'Sonar rules override',
|
||||
rules: {
|
||||
'sonarjs/no-duplicate-string': 'warn',
|
||||
// fix
|
||||
'sonarjs/no-empty-function': 'off',
|
||||
'sonarjs/no-unused-expressions': 'off',
|
||||
},
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user