Compare commits

...

10 Commits

Author SHA1 Message Date
Anthony Fu
8ddaee3bf8 release v0.25.1 2022-06-03 22:08:51 +08:00
Anthony Fu
af2c3273cf fix: disable consistent-indexed-object-style 2022-06-03 22:08:48 +08:00
Anthony Fu
12e57fce54 release v0.25.0 2022-05-29 23:01:40 +08:00
Anthony Fu
b08b769a8a feat: enable reportUnusedDisableDirectives by default 2022-05-29 23:01:36 +08:00
Anthony Fu
65cef9437a release v0.24.3 2022-05-29 15:54:04 +08:00
QiroNT
f1b9dc396b fix: prioritize require (#98) 2022-05-29 15:53:45 +08:00
Anthony Fu
b8fe7fe4e7 release v0.24.2 2022-05-25 07:02:48 +08:00
Anthony Fu
001de3b060 feat: improve package.json sorting 2022-05-25 07:02:45 +08:00
Anthony Fu
761a0ce4ee release v0.24.1 2022-05-25 05:31:09 +08:00
Anthony Fu
a9d330cac3 fix: disable vue/prefer-import-from-vue 2022-05-25 05:31:00 +08:00
10 changed files with 66 additions and 50 deletions

View File

@@ -1,10 +1,10 @@
{ {
"name": "@antfu/eslint-config-monorepo", "name": "@antfu/eslint-config-monorepo",
"version": "0.24.0", "version": "0.25.1",
"private": true, "private": true,
"packageManager": "pnpm@7.1.0", "packageManager": "pnpm@7.1.0",
"license": "MIT",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)", "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT",
"scripts": { "scripts": {
"lint": "eslint .", "lint": "eslint .",
"prepare": "pnpm -r run stub", "prepare": "pnpm -r run stub",

View File

@@ -1,10 +1,13 @@
{ {
"name": "@antfu/eslint-config", "name": "@antfu/eslint-config",
"version": "0.24.0", "version": "0.25.1",
"description": "", "description": "Anthony's ESLint config",
"keywords": [],
"license": "MIT",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)", "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT",
"homepage": "https://github.com/antfu/eslint-config",
"keywords": [
"eslint-config"
],
"main": "index.js", "main": "index.js",
"files": [ "files": [
"index.js" "index.js"
@@ -31,8 +34,5 @@
}, },
"devDependencies": { "devDependencies": {
"eslint": "^8.16.0" "eslint": "^8.16.0"
},
"publishConfig": {
"access": "public"
} }
} }

View File

@@ -4,6 +4,7 @@ module.exports = {
browser: true, browser: true,
node: true, node: true,
}, },
reportUnusedDisableDirectives: true,
extends: [ extends: [
'./standard', './standard',
'plugin:import/recommended', 'plugin:import/recommended',
@@ -71,33 +72,47 @@ module.exports = {
{ {
pathPattern: '^$', pathPattern: '^$',
order: [ order: [
'publisher',
'name', 'name',
'displayName',
'type', 'type',
'version', 'version',
'private', 'private',
'packageManager', 'packageManager',
'description', 'description',
'keywords',
'license',
'author', 'author',
'repository', 'license',
'funding', 'funding',
'homepage',
'repository',
'bugs',
'keywords',
'categories',
'sideEffects',
'exports',
'main', 'main',
'module', 'module',
'types',
'unpkg', 'unpkg',
'jsdelivr', 'jsdelivr',
'exports', 'types',
'files', 'typesVersions',
'bin', 'bin',
'sideEffects', 'icon',
'files',
'engines',
'activationEvents',
'contributes',
'scripts', 'scripts',
'peerDependencies', 'peerDependencies',
'peerDependenciesMeta', 'peerDependenciesMeta',
'dependencies', 'dependencies',
'optionalDependencies', 'optionalDependencies',
'devDependencies', 'devDependencies',
'pnpm',
'overrides',
'resolutions',
'husky', 'husky',
'simple-git-hooks',
'lint-staged', 'lint-staged',
'eslintConfig', 'eslintConfig',
], ],
@@ -106,6 +121,14 @@ module.exports = {
pathPattern: '^(?:dev|peer|optional|bundled)?[Dd]ependencies$', pathPattern: '^(?:dev|peer|optional|bundled)?[Dd]ependencies$',
order: { type: 'asc' }, order: { type: 'asc' },
}, },
{
pathPattern: '^exports.*$',
order: [
'types',
'require',
'import',
],
},
], ],
}, },
}, },

View File

@@ -1,10 +1,13 @@
{ {
"name": "@antfu/eslint-config-basic", "name": "@antfu/eslint-config-basic",
"version": "0.24.0", "version": "0.25.1",
"description": "", "description": "",
"keywords": [],
"license": "MIT",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)", "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT",
"homepage": "https://github.com/antfu/eslint-config",
"keywords": [
"eslint-config"
],
"main": "index.js", "main": "index.js",
"files": [ "files": [
"*.js" "*.js"
@@ -31,8 +34,5 @@
}, },
"devDependencies": { "devDependencies": {
"eslint": "^8.16.0" "eslint": "^8.16.0"
},
"publishConfig": {
"access": "public"
} }
} }

View File

@@ -1,17 +1,11 @@
{ {
"name": "eslint-plugin-antfu", "name": "eslint-plugin-antfu",
"version": "0.24.0", "version": "0.25.1",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/antfu/eslint-config",
"main": "./dist/index.cjs", "main": "./dist/index.cjs",
"module": "./dist/index.mjs", "module": "./dist/index.mjs",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
}
},
"files": [ "files": [
"dist" "dist"
], ],

View File

@@ -1,10 +1,13 @@
{ {
"name": "@antfu/eslint-config-react", "name": "@antfu/eslint-config-react",
"version": "0.24.0", "version": "0.25.1",
"description": "", "description": "",
"keywords": [],
"license": "MIT",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)", "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT",
"homepage": "https://github.com/antfu/eslint-config",
"keywords": [
"eslint-config"
],
"main": "index.js", "main": "index.js",
"files": [ "files": [
"index.js" "index.js"
@@ -15,9 +18,6 @@
"peerDependencies": { "peerDependencies": {
"eslint": ">=7.4.0" "eslint": ">=7.4.0"
}, },
"publishConfig": {
"access": "public"
},
"dependencies": { "dependencies": {
"@antfu/eslint-config-ts": "workspace:*", "@antfu/eslint-config-ts": "workspace:*",
"eslint-plugin-react": "^7.30.0" "eslint-plugin-react": "^7.30.0"

View File

@@ -1,4 +1,3 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const basic = require('@antfu/eslint-config-basic') const basic = require('@antfu/eslint-config-basic')
module.exports = { module.exports = {
@@ -22,7 +21,6 @@ module.exports = {
'@typescript-eslint/type-annotation-spacing': ['error', {}], '@typescript-eslint/type-annotation-spacing': ['error', {}],
'@typescript-eslint/consistent-type-imports': ['error', { prefer: 'type-imports', disallowTypeAnnotations: false }], '@typescript-eslint/consistent-type-imports': ['error', { prefer: 'type-imports', disallowTypeAnnotations: false }],
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'], '@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
'@typescript-eslint/consistent-indexed-object-style': ['error', 'record'],
'@typescript-eslint/prefer-ts-expect-error': 'error', '@typescript-eslint/prefer-ts-expect-error': 'error',
// Override JS // Override JS
@@ -114,6 +112,7 @@ module.exports = {
// '@typescript-eslint/dot-notation': ['error', { allowKeywords: true }], // '@typescript-eslint/dot-notation': ['error', { allowKeywords: true }],
// off // off
'@typescript-eslint/consistent-indexed-object-style': 'off',
'@typescript-eslint/naming-convention': 'off', '@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-member-accessibility': 'off', '@typescript-eslint/explicit-member-accessibility': 'off',

View File

@@ -1,17 +1,17 @@
{ {
"name": "@antfu/eslint-config-ts", "name": "@antfu/eslint-config-ts",
"version": "0.24.0", "version": "0.25.1",
"description": "", "description": "",
"keywords": [],
"license": "MIT",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)", "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT",
"homepage": "https://github.com/antfu/eslint-config",
"keywords": [
"eslint-config"
],
"main": "index.js", "main": "index.js",
"files": [ "files": [
"index.js" "index.js"
], ],
"publishConfig": {
"access": "public"
},
"peerDependencies": { "peerDependencies": {
"eslint": ">=7.4.0", "eslint": ">=7.4.0",
"typescript": ">=3.9" "typescript": ">=3.9"

View File

@@ -23,6 +23,7 @@ module.exports = {
'vue/require-prop-types': 'off', 'vue/require-prop-types': 'off',
'vue/require-default-prop': 'off', 'vue/require-default-prop': 'off',
'vue/multi-word-component-names': 'off', 'vue/multi-word-component-names': 'off',
'vue/prefer-import-from-vue': 'off',
// reactivity transform // reactivity transform
'vue/no-setup-props-destructure': 'off', 'vue/no-setup-props-destructure': 'off',

View File

@@ -1,10 +1,12 @@
{ {
"name": "@antfu/eslint-config-vue", "name": "@antfu/eslint-config-vue",
"version": "0.24.0", "version": "0.25.1",
"description": "", "description": "",
"keywords": [],
"license": "MIT",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)", "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT",
"keywords": [
"eslint-config"
],
"main": "index.js", "main": "index.js",
"files": [ "files": [
"index.js" "index.js"
@@ -12,9 +14,6 @@
"peerDependencies": { "peerDependencies": {
"eslint": ">=7.4.0" "eslint": ">=7.4.0"
}, },
"publishConfig": {
"access": "public"
},
"dependencies": { "dependencies": {
"@antfu/eslint-config-ts": "workspace:*", "@antfu/eslint-config-ts": "workspace:*",
"eslint-plugin-vue": "^9.0.1" "eslint-plugin-vue": "^9.0.1"