Compare commits

..

6 Commits

Author SHA1 Message Date
Anthony Fu
91a8757a8c v0.3.3 2020-08-22 00:07:57 +08:00
Anthony Fu
245001d081 fix: disable import/no-absolute-path 2020-08-22 00:02:01 +08:00
Anthony Fu
e25761fcfc v0.3.2 2020-08-12 20:09:11 +08:00
Anthony Fu
7dd8ffaed0 chore: lint 2020-08-12 20:08:06 +08:00
Anthony Fu
24e025c12d v0.3.1 2020-08-12 19:56:23 +08:00
Anthony Fu
e53f3ec8db fix: ref 2020-08-12 19:51:00 +08:00
17 changed files with 233 additions and 49 deletions

View File

@@ -3,6 +3,36 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.3.3](https://github.com/antfu/eslint-config/compare/v0.3.2...v0.3.3) (2020-08-21)
### Bug Fixes
* disable import/no-absolute-path ([245001d](https://github.com/antfu/eslint-config/commit/245001d08129b3ec4961741d596f70abb2c9be5f))
## [0.3.2](https://github.com/antfu/eslint-config/compare/v0.3.1...v0.3.2) (2020-08-12)
**Note:** Version bump only for package @antfu/eslint-config-monorepo
## [0.3.1](https://github.com/antfu/eslint-config/compare/v0.3.0...v0.3.1) (2020-08-12)
### Bug Fixes
* ref ([e53f3ec](https://github.com/antfu/eslint-config/commit/e53f3ec8dbc1cc3e32d57c08604b2b1d51661ca4))
# [0.3.0](https://github.com/antfu/eslint-config/compare/v0.2.14...v0.3.0) (2020-08-12)

View File

@@ -2,5 +2,5 @@
"packages": [
"packages/*"
],
"version": "0.3.0"
"version": "0.3.3"
}

View File

@@ -6,6 +6,7 @@
"private": true,
"scripts": {
"preinstall": "npx only-allow pnpm",
"lint": "npx eslint --ext .js --fix .",
"release": "lerna publish --conventional-commits"
},
"devDependencies": {

View File

@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.3.3](https://github.com/antfu/eslint-config/compare/v0.3.2...v0.3.3) (2020-08-21)
**Note:** Version bump only for package @antfu/eslint-config
## [0.3.2](https://github.com/antfu/eslint-config/compare/v0.3.1...v0.3.2) (2020-08-12)
**Note:** Version bump only for package @antfu/eslint-config
## [0.3.1](https://github.com/antfu/eslint-config/compare/v0.3.0...v0.3.1) (2020-08-12)
**Note:** Version bump only for package @antfu/eslint-config
# [0.3.0](https://github.com/antfu/eslint-config/compare/v0.2.14...v0.3.0) (2020-08-12)

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config",
"version": "0.3.0",
"version": "0.3.3",
"description": "",
"main": "index.js",
"keywords": [],
@@ -16,7 +16,10 @@
"access": "public"
},
"dependencies": {
"@antfu/eslint-config-react": "^0.3.0",
"@antfu/eslint-config-vue": "^0.3.0"
"@antfu/eslint-config-react": "^0.3.3",
"@antfu/eslint-config-vue": "^0.3.3"
},
"devDependencies": {
"eslint": "^7.6.0"
}
}

View File

@@ -3,6 +3,25 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.3.3](https://github.com/antfu/eslint-config/compare/v0.3.2...v0.3.3) (2020-08-21)
### Bug Fixes
* disable import/no-absolute-path ([245001d](https://github.com/antfu/eslint-config/commit/245001d08129b3ec4961741d596f70abb2c9be5f))
## [0.3.2](https://github.com/antfu/eslint-config/compare/v0.3.1...v0.3.2) (2020-08-12)
**Note:** Version bump only for package @antfu/eslint-config-basic
# [0.3.0](https://github.com/antfu/eslint-config/compare/v0.2.14...v0.3.0) (2020-08-12)

View File

@@ -24,17 +24,18 @@ module.exports = {
'import/first': 'error',
'import/no-mutable-exports': 'error',
'import/no-unresolved': 'off',
'import/no-absolute-path': 'off',
// Common
'semi': [2, 'never'],
'curly': [2, 'multi-or-nest', 'consistent'],
'quotes': ['error', 'single'],
semi: [2, 'never'],
curly: [2, 'multi-or-nest', 'consistent'],
quotes: ['error', 'single'],
'no-unused-vars': 'warn',
'no-param-reassign': 'off',
'array-bracket-spacing': ['error', 'never'],
'brace-style': ['error', 'stroustrup', { 'allowSingleLine': true }],
'brace-style': ['error', 'stroustrup', { allowSingleLine: true }],
'block-spacing': ['error', 'always'],
'camelcase': 'off',
camelcase: 'off',
'comma-spacing': ['error', { before: false, after: true }],
'comma-style': ['error', 'last'],
'comma-dangle': ['error', 'always-multiline'],
@@ -44,7 +45,7 @@ module.exports = {
'no-cond-assign': ['error', 'always'],
'func-call-spacing': ['off', 'never'],
'key-spacing': ['error', { beforeColon: false, afterColon: true }],
'indent': ['error', 2, { SwitchCase: 1, VariableDeclarator: 1, outerIIFEBody: 1 }],
indent: ['error', 2, { SwitchCase: 1, VariableDeclarator: 1, outerIIFEBody: 1 }],
'no-restricted-syntax': [
'error',
'DebuggerStatement',
@@ -82,8 +83,8 @@ module.exports = {
'array-callback-return': 'error',
'block-scoped-var': 'error',
'consistent-return': 'off',
'complexity': ['off', 11],
'eqeqeq': ['error', 'allow-null'],
complexity: ['off', 11],
eqeqeq: ['error', 'allow-null'],
'no-alert': 'warn',
'no-case-declarations': 'error',
'no-multi-spaces': 'error',

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config-basic",
"version": "0.3.0",
"version": "0.3.3",
"description": "",
"main": "index.js",
"keywords": [],

View File

@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.3.3](https://github.com/antfu/eslint-config/compare/v0.3.2...v0.3.3) (2020-08-21)
**Note:** Version bump only for package @antfu/eslint-config-react
## [0.3.2](https://github.com/antfu/eslint-config/compare/v0.3.1...v0.3.2) (2020-08-12)
**Note:** Version bump only for package @antfu/eslint-config-react
## [0.3.1](https://github.com/antfu/eslint-config/compare/v0.3.0...v0.3.1) (2020-08-12)
**Note:** Version bump only for package @antfu/eslint-config-react
# [0.3.0](https://github.com/antfu/eslint-config/compare/v0.2.14...v0.3.0) (2020-08-12)

View File

@@ -1,12 +1,12 @@
module.exports = {
extends: [
"plugin:react/recommended",
'plugin:react/recommended',
'@antfu/eslint-config-ts',
],
"rules": {
"jsx-quotes": [
"error",
"prefer-double"
]
}
rules: {
'jsx-quotes': [
'error',
'prefer-double',
],
},
}

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config-react",
"version": "0.3.0",
"version": "0.3.3",
"description": "",
"main": "index.js",
"keywords": [],
@@ -19,11 +19,12 @@
"access": "public"
},
"dependencies": {
"@antfu/eslint-config-ts": "^0.3.0",
"@antfu/eslint-config-ts": "^0.3.3",
"eslint-plugin-react": "^7.20.5"
},
"devDependencies": {
"eslint": "^7.6.0",
"react": "^16.13.1",
"typescript": "^3.9.7"
}
}

View File

@@ -3,6 +3,33 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.3.3](https://github.com/antfu/eslint-config/compare/v0.3.2...v0.3.3) (2020-08-21)
**Note:** Version bump only for package @antfu/eslint-config-ts
## [0.3.2](https://github.com/antfu/eslint-config/compare/v0.3.1...v0.3.2) (2020-08-12)
**Note:** Version bump only for package @antfu/eslint-config-ts
## [0.3.1](https://github.com/antfu/eslint-config/compare/v0.3.0...v0.3.1) (2020-08-12)
### Bug Fixes
* ref ([e53f3ec](https://github.com/antfu/eslint-config/commit/e53f3ec8dbc1cc3e32d57c08604b2b1d51661ca4))
# [0.3.0](https://github.com/antfu/eslint-config/compare/v0.2.14...v0.3.0) (2020-08-12)

View File

@@ -5,7 +5,7 @@ module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
'@antfu/eslint-config',
'@antfu/eslint-config-basic',
],
rules: {
// TS
@@ -29,5 +29,5 @@ module.exports = {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/ban-types': 'off',
}
},
}

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config-ts",
"version": "0.3.0",
"version": "0.3.3",
"description": "",
"main": "index.js",
"keywords": [],
@@ -17,8 +17,11 @@
"typescript": ">=3.9"
},
"dependencies": {
"@antfu/eslint-config-basic": "^0.3.0",
"@antfu/eslint-config-basic": "^0.3.3",
"@typescript-eslint/eslint-plugin": "3.6.1",
"@typescript-eslint/parser": "^3.9.0"
},
"devDependencies": {
"eslint": "^7.6.0"
}
}

View File

@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.3.3](https://github.com/antfu/eslint-config/compare/v0.3.2...v0.3.3) (2020-08-21)
**Note:** Version bump only for package @antfu/eslint-config-vue
## [0.3.2](https://github.com/antfu/eslint-config/compare/v0.3.1...v0.3.2) (2020-08-12)
**Note:** Version bump only for package @antfu/eslint-config-vue
## [0.3.1](https://github.com/antfu/eslint-config/compare/v0.3.0...v0.3.1) (2020-08-12)
**Note:** Version bump only for package @antfu/eslint-config-vue
# [0.3.0](https://github.com/antfu/eslint-config/compare/v0.2.14...v0.3.0) (2020-08-12)

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config-vue",
"version": "0.3.0",
"version": "0.3.3",
"description": "",
"main": "index.js",
"keywords": [],
@@ -16,7 +16,10 @@
"access": "public"
},
"dependencies": {
"@antfu/eslint-config-ts": "^0.3.0",
"@antfu/eslint-config-ts": "^0.3.3",
"eslint-plugin-vue": "7.0.0-alpha.10"
},
"devDependencies": {
"eslint": "^7.6.0"
}
}

66
pnpm-lock.yaml generated
View File

@@ -14,9 +14,12 @@ importers:
dependencies:
'@antfu/eslint-config-react': 'link:../react'
'@antfu/eslint-config-vue': 'link:../vue'
devDependencies:
eslint: 7.6.0
specifiers:
'@antfu/eslint-config-react': '*'
'@antfu/eslint-config-vue': '*'
'@antfu/eslint-config-react': ^0.3.1
'@antfu/eslint-config-vue': ^0.3.1
eslint: ^7.6.0
packages/basic:
dependencies:
eslint-config-standard: 14.1.1_852544c994842eaa2dbc35fff65e8cbc
@@ -43,27 +46,35 @@ importers:
eslint-plugin-react: 7.20.5_eslint@7.6.0
devDependencies:
eslint: 7.6.0
react: 16.13.1
typescript: 3.9.7
specifiers:
'@antfu/eslint-config-ts': '*'
'@antfu/eslint-config-ts': ^0.3.1
eslint: ^7.6.0
eslint-plugin-react: ^7.20.5
react: ^16.13.1
typescript: ^3.9.7
packages/typescript:
dependencies:
'@antfu/eslint-config-basic': 'link:../basic'
'@typescript-eslint/eslint-plugin': 3.6.1_@typescript-eslint+parser@3.9.0
'@typescript-eslint/parser': 3.9.0
'@typescript-eslint/eslint-plugin': 3.6.1_59c62cf4e3dde9582ccc3eef0435f14f
'@typescript-eslint/parser': 3.9.0_eslint@7.6.0
devDependencies:
eslint: 7.6.0
specifiers:
'@antfu/eslint-config-basic': '*'
'@antfu/eslint-config-basic': ^0.3.0
'@typescript-eslint/eslint-plugin': 3.6.1
'@typescript-eslint/parser': ^3.9.0
eslint: ^7.6.0
packages/vue:
dependencies:
'@antfu/eslint-config-ts': 'link:../typescript'
eslint-plugin-vue: 7.0.0-alpha.10
eslint-plugin-vue: 7.0.0-alpha.10_eslint@7.6.0
devDependencies:
eslint: 7.6.0
specifiers:
'@antfu/eslint-config-ts': '*'
'@antfu/eslint-config-ts': ^0.3.1
eslint: ^7.6.0
eslint-plugin-vue: 7.0.0-alpha.10
lockfileVersion: 5.1
packages:
@@ -1107,11 +1118,12 @@ packages:
/@types/normalize-package-data/2.4.0:
resolution:
integrity: sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==
/@typescript-eslint/eslint-plugin/3.6.1_@typescript-eslint+parser@3.9.0:
/@typescript-eslint/eslint-plugin/3.6.1_59c62cf4e3dde9582ccc3eef0435f14f:
dependencies:
'@typescript-eslint/experimental-utils': 3.6.1
'@typescript-eslint/parser': 3.9.0
'@typescript-eslint/experimental-utils': 3.6.1_eslint@7.6.0
'@typescript-eslint/parser': 3.9.0_eslint@7.6.0
debug: 4.1.1
eslint: 7.6.0
functional-red-black-tree: 1.0.1
regexpp: 3.1.0
semver: 7.3.2
@@ -1128,11 +1140,12 @@ packages:
optional: true
resolution:
integrity: sha512-06lfjo76naNeOMDl+mWG9Fh/a0UHKLGhin+mGaIw72FUMbMGBkdi/FEJmgEDzh4eE73KIYzHWvOCYJ0ak7nrJQ==
/@typescript-eslint/experimental-utils/3.6.1:
/@typescript-eslint/experimental-utils/3.6.1_eslint@7.6.0:
dependencies:
'@types/json-schema': 7.0.5
'@typescript-eslint/types': 3.6.1
'@typescript-eslint/typescript-estree': 3.6.1
eslint: 7.6.0
eslint-scope: 5.1.0
eslint-utils: 2.1.0
dev: false
@@ -1142,11 +1155,12 @@ packages:
eslint: '*'
resolution:
integrity: sha512-oS+hihzQE5M84ewXrTlVx7eTgc52eu+sVmG7ayLfOhyZmJ8Unvf3osyFQNADHP26yoThFfbxcibbO0d2FjnYhg==
/@typescript-eslint/experimental-utils/3.9.0:
/@typescript-eslint/experimental-utils/3.9.0_eslint@7.6.0:
dependencies:
'@types/json-schema': 7.0.5
'@typescript-eslint/types': 3.9.0
'@typescript-eslint/typescript-estree': 3.9.0
eslint: 7.6.0
eslint-scope: 5.1.0
eslint-utils: 2.1.0
dev: false
@@ -1156,12 +1170,13 @@ packages:
eslint: '*'
resolution:
integrity: sha512-/vSHUDYizSOhrOJdjYxPNGfb4a3ibO8zd4nUKo/QBFOmxosT3cVUV7KIg8Dwi6TXlr667G7YPqFK9+VSZOorNA==
/@typescript-eslint/parser/3.9.0:
/@typescript-eslint/parser/3.9.0_eslint@7.6.0:
dependencies:
'@types/eslint-visitor-keys': 1.0.0
'@typescript-eslint/experimental-utils': 3.9.0
'@typescript-eslint/experimental-utils': 3.9.0_eslint@7.6.0
'@typescript-eslint/types': 3.9.0
'@typescript-eslint/typescript-estree': 3.9.0
eslint: 7.6.0
eslint-visitor-keys: 1.3.0
dev: false
engines:
@@ -2598,12 +2613,13 @@ packages:
eslint: '>=7.3.0'
resolution:
integrity: sha512-S8v7+v4gZTQPj4pKKvexhgSUaLQSyItvxW2SVZDaX9Iu5IjlAmF2eni+L6w8a2aqshxgU8Lle4FIAVDtuejSKQ==
/eslint-plugin-vue/7.0.0-alpha.10:
/eslint-plugin-vue/7.0.0-alpha.10_eslint@7.6.0:
dependencies:
eslint: 7.6.0
eslint-utils: 2.1.0
natural-compare: 1.4.0
semver: 7.3.2
vue-eslint-parser: 7.1.0
vue-eslint-parser: 7.1.0_eslint@7.6.0
dev: false
engines:
node: '>=8.10'
@@ -4008,7 +4024,6 @@ packages:
/loose-envify/1.4.0:
dependencies:
js-tokens: 4.0.0
dev: false
hasBin: true
resolution:
integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==
@@ -4988,7 +5003,6 @@ packages:
loose-envify: 1.4.0
object-assign: 4.1.1
react-is: 16.13.1
dev: false
resolution:
integrity: sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==
/proto-list/1.2.4:
@@ -5063,9 +5077,18 @@ packages:
resolution:
integrity: sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==
/react-is/16.13.1:
dev: false
resolution:
integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==
/react/16.13.1:
dependencies:
loose-envify: 1.4.0
object-assign: 4.1.1
prop-types: 15.7.2
dev: true
engines:
node: '>=0.10.0'
resolution:
integrity: sha512-YMZQQq32xHLX0bz5Mnibv1/LHb3Sqzngu7xstSM+vrkE5Kzr9xE0yMByK5kMoTK30YVJE61WfbxIFFvfeDKT1w==
/read-cmd-shim/1.0.5:
dependencies:
graceful-fs: 4.2.4
@@ -6241,9 +6264,10 @@ packages:
'0': node >=0.6.0
resolution:
integrity: sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=
/vue-eslint-parser/7.1.0:
/vue-eslint-parser/7.1.0_eslint@7.6.0:
dependencies:
debug: 4.1.1
eslint: 7.6.0
eslint-scope: 5.1.0
eslint-visitor-keys: 1.3.0
espree: 6.2.1