Compare commits

...

6 Commits

Author SHA1 Message Date
Anthony Fu
0378f3d423 v0.4.0 2020-10-21 14:39:50 +08:00
Anthony Fu
9755c28da2 chore!: update 2020-10-21 14:38:36 +08:00
Anthony Fu
7ce57bfbf1 v0.3.4 2020-10-20 12:21:58 +08:00
Anthony Fu
c0c3070075 chore: update deps 2020-10-20 12:21:44 +08:00
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
16 changed files with 516 additions and 340 deletions

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.4](https://github.com/antfu/eslint-config/compare/v0.3.3...v0.3.4) (2020-10-20)
**Note:** Version bump only for package @antfu/eslint-config-monorepo
## [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

View File

@@ -2,5 +2,5 @@
"packages": [
"packages/*"
],
"version": "0.3.2"
"version": "0.4.0"
}

View File

@@ -11,8 +11,8 @@
},
"devDependencies": {
"@antfu/eslint-config": "*",
"eslint": "^7.6.0",
"eslint": "^7.11.0",
"lerna": "^3.22.1",
"typescript": "^3.9.7"
"typescript": "^4.0.3"
}
}

View File

@@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.3.4](https://github.com/antfu/eslint-config/compare/v0.3.3...v0.3.4) (2020-10-20)
**Note:** Version bump only for package @antfu/eslint-config
## [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

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config",
"version": "0.3.2",
"version": "0.4.0",
"description": "",
"main": "index.js",
"keywords": [],
@@ -16,10 +16,10 @@
"access": "public"
},
"dependencies": {
"@antfu/eslint-config-react": "^0.3.2",
"@antfu/eslint-config-vue": "^0.3.2"
"@antfu/eslint-config-react": "^0.4.0",
"@antfu/eslint-config-vue": "^0.4.0"
},
"devDependencies": {
"eslint": "^7.6.0"
"eslint": "^7.11.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.4](https://github.com/antfu/eslint-config/compare/v0.3.3...v0.3.4) (2020-10-20)
**Note:** Version bump only for package @antfu/eslint-config-basic
## [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

View File

@@ -4,15 +4,8 @@ module.exports = {
browser: true,
node: true,
},
extends: [
'standard',
'plugin:import/errors',
'plugin:import/warnings',
],
plugins: [
'html',
'unicorn',
],
extends: ['standard', 'plugin:import/errors', 'plugin:import/warnings'],
plugins: ['html', 'unicorn'],
settings: {
'import/resolver': {
node: { extensions: ['.js', '.mjs'] },
@@ -24,6 +17,7 @@ module.exports = {
'import/first': 'error',
'import/no-mutable-exports': 'error',
'import/no-unresolved': 'off',
'import/no-absolute-path': 'off',
// Common
semi: [2, 'never'],
@@ -44,7 +38,11 @@ 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',
@@ -55,22 +53,32 @@ module.exports = {
'no-spaced-func': 'error',
'object-curly-spacing': ['error', 'always'],
'no-return-await': 'off',
'space-before-function-paren': ['error', 'never'],
'space-before-function-paren': 'error',
// es6
'no-var': 'error',
'prefer-const': ['error', {
'prefer-const': [
'error',
{
destructuring: 'any',
ignoreReadBeforeAssign: true,
}],
'prefer-arrow-callback': ['error', {
},
],
'prefer-arrow-callback': [
'error',
{
allowNamedFunctions: false,
allowUnboundThis: true,
}],
'object-shorthand': ['error', 'always', {
},
],
'object-shorthand': [
'error',
'always',
{
ignoreConstructors: false,
avoidQuotes: true,
}],
},
],
'prefer-rest-params': 'error',
'prefer-spread': 'error',
'prefer-template': 'error',

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config-basic",
"version": "0.3.2",
"version": "0.4.0",
"description": "",
"main": "index.js",
"keywords": [],
@@ -20,14 +20,14 @@
},
"dependencies": {
"eslint-config-standard": "^14.1.1",
"eslint-plugin-html": "^6.0.3",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-html": "^6.1.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"eslint-plugin-unicorn": "^21.0.0"
"eslint-plugin-unicorn": "^23.0.0"
},
"devDependencies": {
"eslint": "^7.6.0"
"eslint": "^7.11.0"
}
}

View File

@@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.3.4](https://github.com/antfu/eslint-config/compare/v0.3.3...v0.3.4) (2020-10-20)
**Note:** Version bump only for package @antfu/eslint-config-react
## [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

View File

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

View File

@@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.3.4](https://github.com/antfu/eslint-config/compare/v0.3.3...v0.3.4) (2020-10-20)
**Note:** Version bump only for package @antfu/eslint-config-ts
## [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

View File

@@ -4,18 +4,23 @@ module.exports = {
],
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
'@antfu/eslint-config-basic',
'plugin:@typescript-eslint/recommended',
],
rules: {
// TS
'no-useless-constructor': 'off',
'@typescript-eslint/semi': ['error', 'never'],
'@typescript-eslint/no-unused-vars': [2, { args: 'none' }],
'@typescript-eslint/indent': ['error', 2],
'@typescript-eslint/member-delimiter-style': ['error', { multiline: { delimiter: 'none' } }],
'@typescript-eslint/type-annotation-spacing': ['error', {}],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': [2, { args: 'none' }],
'no-redeclare': 'off',
'@typescript-eslint/no-redeclare': 'error',
// off
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',

View File

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

View File

@@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.3.4](https://github.com/antfu/eslint-config/compare/v0.3.3...v0.3.4) (2020-10-20)
**Note:** Version bump only for package @antfu/eslint-config-vue
## [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

View File

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

637
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff