Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
4c35e1bbb8 | ||
|
4c7e189fcd | ||
|
0378f3d423 | ||
|
9755c28da2 |
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [0.4.1](https://github.com/antfu/eslint-config/compare/v0.4.0...v0.4.1) (2020-10-21)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @antfu/eslint-config-monorepo
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [0.3.4](https://github.com/antfu/eslint-config/compare/v0.3.3...v0.3.4) (2020-10-20)
|
## [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
|
**Note:** Version bump only for package @antfu/eslint-config-monorepo
|
||||||
|
@@ -2,5 +2,5 @@
|
|||||||
"packages": [
|
"packages": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
],
|
],
|
||||||
"version": "0.3.4"
|
"version": "0.4.1"
|
||||||
}
|
}
|
||||||
|
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [0.4.1](https://github.com/antfu/eslint-config/compare/v0.4.0...v0.4.1) (2020-10-21)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @antfu/eslint-config
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [0.3.4](https://github.com/antfu/eslint-config/compare/v0.3.3...v0.3.4) (2020-10-20)
|
## [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
|
**Note:** Version bump only for package @antfu/eslint-config
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@antfu/eslint-config",
|
"name": "@antfu/eslint-config",
|
||||||
"version": "0.3.4",
|
"version": "0.4.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
@@ -16,8 +16,8 @@
|
|||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@antfu/eslint-config-react": "^0.3.4",
|
"@antfu/eslint-config-react": "^0.4.1",
|
||||||
"@antfu/eslint-config-vue": "^0.3.4"
|
"@antfu/eslint-config-vue": "^0.4.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "^7.11.0"
|
"eslint": "^7.11.0"
|
||||||
|
@@ -4,15 +4,8 @@ module.exports = {
|
|||||||
browser: true,
|
browser: true,
|
||||||
node: true,
|
node: true,
|
||||||
},
|
},
|
||||||
extends: [
|
extends: ['standard', 'plugin:import/errors', 'plugin:import/warnings'],
|
||||||
'standard',
|
plugins: ['html', 'unicorn'],
|
||||||
'plugin:import/errors',
|
|
||||||
'plugin:import/warnings',
|
|
||||||
],
|
|
||||||
plugins: [
|
|
||||||
'html',
|
|
||||||
'unicorn',
|
|
||||||
],
|
|
||||||
settings: {
|
settings: {
|
||||||
'import/resolver': {
|
'import/resolver': {
|
||||||
node: { extensions: ['.js', '.mjs'] },
|
node: { extensions: ['.js', '.mjs'] },
|
||||||
@@ -45,7 +38,11 @@ module.exports = {
|
|||||||
'no-cond-assign': ['error', 'always'],
|
'no-cond-assign': ['error', 'always'],
|
||||||
'func-call-spacing': ['off', 'never'],
|
'func-call-spacing': ['off', 'never'],
|
||||||
'key-spacing': ['error', { beforeColon: false, afterColon: true }],
|
'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': [
|
'no-restricted-syntax': [
|
||||||
'error',
|
'error',
|
||||||
'DebuggerStatement',
|
'DebuggerStatement',
|
||||||
@@ -56,22 +53,32 @@ module.exports = {
|
|||||||
'no-spaced-func': 'error',
|
'no-spaced-func': 'error',
|
||||||
'object-curly-spacing': ['error', 'always'],
|
'object-curly-spacing': ['error', 'always'],
|
||||||
'no-return-await': 'off',
|
'no-return-await': 'off',
|
||||||
'space-before-function-paren': ['error', 'never'],
|
'space-before-function-paren': 'error',
|
||||||
|
|
||||||
// es6
|
// es6
|
||||||
'no-var': 'error',
|
'no-var': 'error',
|
||||||
'prefer-const': ['error', {
|
'prefer-const': [
|
||||||
destructuring: 'any',
|
'error',
|
||||||
ignoreReadBeforeAssign: true,
|
{
|
||||||
}],
|
destructuring: 'any',
|
||||||
'prefer-arrow-callback': ['error', {
|
ignoreReadBeforeAssign: true,
|
||||||
allowNamedFunctions: false,
|
},
|
||||||
allowUnboundThis: true,
|
],
|
||||||
}],
|
'prefer-arrow-callback': [
|
||||||
'object-shorthand': ['error', 'always', {
|
'error',
|
||||||
ignoreConstructors: false,
|
{
|
||||||
avoidQuotes: true,
|
allowNamedFunctions: false,
|
||||||
}],
|
allowUnboundThis: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
'object-shorthand': [
|
||||||
|
'error',
|
||||||
|
'always',
|
||||||
|
{
|
||||||
|
ignoreConstructors: false,
|
||||||
|
avoidQuotes: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
'prefer-rest-params': 'error',
|
'prefer-rest-params': 'error',
|
||||||
'prefer-spread': 'error',
|
'prefer-spread': 'error',
|
||||||
'prefer-template': 'error',
|
'prefer-template': 'error',
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@antfu/eslint-config-basic",
|
"name": "@antfu/eslint-config-basic",
|
||||||
"version": "0.3.4",
|
"version": "0.4.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
|
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [0.4.1](https://github.com/antfu/eslint-config/compare/v0.4.0...v0.4.1) (2020-10-21)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @antfu/eslint-config-react
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [0.3.4](https://github.com/antfu/eslint-config/compare/v0.3.3...v0.3.4) (2020-10-20)
|
## [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
|
**Note:** Version bump only for package @antfu/eslint-config-react
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@antfu/eslint-config-react",
|
"name": "@antfu/eslint-config-react",
|
||||||
"version": "0.3.4",
|
"version": "0.4.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@antfu/eslint-config-ts": "^0.3.4",
|
"@antfu/eslint-config-ts": "^0.4.1",
|
||||||
"eslint-plugin-react": "^7.21.5"
|
"eslint-plugin-react": "^7.21.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [0.4.1](https://github.com/antfu/eslint-config/compare/v0.4.0...v0.4.1) (2020-10-21)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @antfu/eslint-config-ts
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [0.3.4](https://github.com/antfu/eslint-config/compare/v0.3.3...v0.3.4) (2020-10-20)
|
## [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
|
**Note:** Version bump only for package @antfu/eslint-config-ts
|
||||||
|
@@ -4,18 +4,23 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
parser: '@typescript-eslint/parser',
|
parser: '@typescript-eslint/parser',
|
||||||
extends: [
|
extends: [
|
||||||
'plugin:@typescript-eslint/recommended',
|
|
||||||
'@antfu/eslint-config-basic',
|
'@antfu/eslint-config-basic',
|
||||||
|
'plugin:@typescript-eslint/recommended',
|
||||||
],
|
],
|
||||||
rules: {
|
rules: {
|
||||||
// TS
|
// TS
|
||||||
'no-useless-constructor': 'off',
|
'no-useless-constructor': 'off',
|
||||||
'@typescript-eslint/semi': ['error', 'never'],
|
'@typescript-eslint/semi': ['error', 'never'],
|
||||||
'@typescript-eslint/no-unused-vars': [2, { args: 'none' }],
|
|
||||||
'@typescript-eslint/indent': ['error', 2],
|
'@typescript-eslint/indent': ['error', 2],
|
||||||
'@typescript-eslint/member-delimiter-style': ['error', { multiline: { delimiter: 'none' } }],
|
'@typescript-eslint/member-delimiter-style': ['error', { multiline: { delimiter: 'none' } }],
|
||||||
'@typescript-eslint/type-annotation-spacing': ['error', {}],
|
'@typescript-eslint/type-annotation-spacing': ['error', {}],
|
||||||
|
|
||||||
|
'no-unused-vars': 'off',
|
||||||
|
'@typescript-eslint/no-unused-vars': [2, { args: 'none', ignoreRestSiblings: true }],
|
||||||
|
'no-redeclare': 'off',
|
||||||
|
'@typescript-eslint/no-redeclare': 'error',
|
||||||
|
|
||||||
|
|
||||||
// off
|
// off
|
||||||
'@typescript-eslint/camelcase': 'off',
|
'@typescript-eslint/camelcase': 'off',
|
||||||
'@typescript-eslint/explicit-function-return-type': 'off',
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@antfu/eslint-config-ts",
|
"name": "@antfu/eslint-config-ts",
|
||||||
"version": "0.3.4",
|
"version": "0.4.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
"typescript": ">=3.9"
|
"typescript": ">=3.9"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@antfu/eslint-config-basic": "^0.3.4",
|
"@antfu/eslint-config-basic": "^0.4.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^4.5.0",
|
"@typescript-eslint/eslint-plugin": "^4.5.0",
|
||||||
"@typescript-eslint/parser": "^4.5.0"
|
"@typescript-eslint/parser": "^4.5.0"
|
||||||
},
|
},
|
||||||
|
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [0.4.1](https://github.com/antfu/eslint-config/compare/v0.4.0...v0.4.1) (2020-10-21)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @antfu/eslint-config-vue
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [0.3.4](https://github.com/antfu/eslint-config/compare/v0.3.3...v0.3.4) (2020-10-20)
|
## [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
|
**Note:** Version bump only for package @antfu/eslint-config-vue
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@antfu/eslint-config-vue",
|
"name": "@antfu/eslint-config-vue",
|
||||||
"version": "0.3.4",
|
"version": "0.4.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@antfu/eslint-config-ts": "^0.3.4",
|
"@antfu/eslint-config-ts": "^0.4.1",
|
||||||
"eslint-plugin-vue": "7.1.0"
|
"eslint-plugin-vue": "7.1.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
Reference in New Issue
Block a user