Compare commits

...

14 Commits

Author SHA1 Message Date
Anthony Fu
5a67962e25 v0.6.5 2021-05-09 15:45:45 +08:00
Anthony Fu
ab21039962 fix: no-console 2021-05-09 15:45:31 +08:00
JserWang
c968eccbcd fix: no-spaced-func was deprecated in v3.3.0 (#57) 2021-04-26 10:21:39 +08:00
Anthony Fu
6646d1c08c v0.6.4 2021-04-20 07:03:25 +08:00
Anthony Fu
8f3f8f5a42 fix: overrides 2021-04-20 07:03:18 +08:00
Anthony Fu
db0dfbfe0a v0.6.3 2021-04-20 05:46:56 +08:00
Anthony Fu
19d9122e6a chore: apply lint 2021-04-20 05:46:47 +08:00
Ininit
412d8480d9 fix: eslint-basic rules do not take effect (#56) 2021-04-20 05:45:40 +08:00
Anthony Fu
52d7e70514 v0.6.2 2021-03-16 00:30:18 +08:00
Anthony Fu
67595932e4 fix: only disable no-unused-vars on vue file 2021-03-16 00:30:01 +08:00
Anthony Fu
31505698e4 fix: bring back eslint-plugin-html 2021-03-16 00:28:30 +08:00
Anthony Fu
3b9bd2a3df v0.6.1 2021-03-15 01:58:57 +08:00
Anthony Fu
9847ac276b chore: fix 2021-03-15 01:58:43 +08:00
Anthony Fu
3915e81640 chore: fix 2021-03-15 01:57:00 +08:00
16 changed files with 313 additions and 41 deletions

View File

@@ -3,6 +3,60 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.6.5](https://github.com/antfu/eslint-config/compare/v0.6.4...v0.6.5) (2021-05-09)
### Bug Fixes
* `no-spaced-func` was deprecated in v3.3.0 ([#57](https://github.com/antfu/eslint-config/issues/57)) ([c968ecc](https://github.com/antfu/eslint-config/commit/c968eccbcda3f94fb8b66ed08051c41bde3acb48))
* no-console ([ab21039](https://github.com/antfu/eslint-config/commit/ab21039962d1e24f026714abd394dbea19199eb2))
## [0.6.4](https://github.com/antfu/eslint-config/compare/v0.6.3...v0.6.4) (2021-04-19)
### Bug Fixes
* overrides ([8f3f8f5](https://github.com/antfu/eslint-config/commit/8f3f8f5a42e1864b42ba7b276b1e8efdb2e80e27))
## [0.6.3](https://github.com/antfu/eslint-config/compare/v0.6.2...v0.6.3) (2021-04-19)
### Bug Fixes
* eslint-basic rules do not take effect ([#56](https://github.com/antfu/eslint-config/issues/56)) ([412d848](https://github.com/antfu/eslint-config/commit/412d8480d951e8361dda69be8a7e8722c255b755))
## [0.6.2](https://github.com/antfu/eslint-config/compare/v0.6.1...v0.6.2) (2021-03-15)
### Bug Fixes
* bring back eslint-plugin-html ([3150569](https://github.com/antfu/eslint-config/commit/31505698e4738ac77e074d6cddf89fd16b0ed01f))
* only disable no-unused-vars on vue file ([6759593](https://github.com/antfu/eslint-config/commit/67595932e447824837d9776204c9b559cb06a185))
## [0.6.1](https://github.com/antfu/eslint-config/compare/v0.6.0...v0.6.1) (2021-03-14)
**Note:** Version bump only for package @antfu/eslint-config-monorepo
# [0.6.0](https://github.com/antfu/eslint-config/compare/v0.5.1...v0.6.0) (2021-03-14)

View File

@@ -2,5 +2,5 @@
"packages": [
"packages/*"
],
"version": "0.6.0"
"version": "0.6.5"
}

View File

@@ -3,6 +3,46 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.6.5](https://github.com/antfu/eslint-config/compare/v0.6.4...v0.6.5) (2021-05-09)
**Note:** Version bump only for package @antfu/eslint-config
## [0.6.4](https://github.com/antfu/eslint-config/compare/v0.6.3...v0.6.4) (2021-04-19)
**Note:** Version bump only for package @antfu/eslint-config
## [0.6.3](https://github.com/antfu/eslint-config/compare/v0.6.2...v0.6.3) (2021-04-19)
**Note:** Version bump only for package @antfu/eslint-config
## [0.6.2](https://github.com/antfu/eslint-config/compare/v0.6.1...v0.6.2) (2021-03-15)
**Note:** Version bump only for package @antfu/eslint-config
## [0.6.1](https://github.com/antfu/eslint-config/compare/v0.6.0...v0.6.1) (2021-03-14)
**Note:** Version bump only for package @antfu/eslint-config
# [0.6.0](https://github.com/antfu/eslint-config/compare/v0.5.1...v0.6.0) (2021-03-14)
**Note:** Version bump only for package @antfu/eslint-config

View File

@@ -1,14 +1,14 @@
{
"name": "@antfu/eslint-config",
"version": "0.6.0",
"version": "0.6.5",
"description": "",
"main": "index.js",
"keywords": [],
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"files": [
"index.js"
],
"main": "index.js",
"peerDependencies": {
"eslint": ">=7.4.0"
},
@@ -16,8 +16,8 @@
"access": "public"
},
"dependencies": {
"@antfu/eslint-config-react": "^0.6.0",
"@antfu/eslint-config-vue": "^0.6.0"
"@antfu/eslint-config-react": "^0.6.5",
"@antfu/eslint-config-vue": "^0.6.5"
},
"devDependencies": {
"eslint": "^7.22.0"

View File

@@ -3,6 +3,45 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.6.5](https://github.com/antfu/eslint-config/compare/v0.6.4...v0.6.5) (2021-05-09)
### Bug Fixes
* `no-spaced-func` was deprecated in v3.3.0 ([#57](https://github.com/antfu/eslint-config/issues/57)) ([c968ecc](https://github.com/antfu/eslint-config/commit/c968eccbcda3f94fb8b66ed08051c41bde3acb48))
* no-console ([ab21039](https://github.com/antfu/eslint-config/commit/ab21039962d1e24f026714abd394dbea19199eb2))
## [0.6.3](https://github.com/antfu/eslint-config/compare/v0.6.2...v0.6.3) (2021-04-19)
**Note:** Version bump only for package @antfu/eslint-config-basic
## [0.6.2](https://github.com/antfu/eslint-config/compare/v0.6.1...v0.6.2) (2021-03-15)
### Bug Fixes
* bring back eslint-plugin-html ([3150569](https://github.com/antfu/eslint-config/commit/31505698e4738ac77e074d6cddf89fd16b0ed01f))
## [0.6.1](https://github.com/antfu/eslint-config/compare/v0.6.0...v0.6.1) (2021-03-14)
**Note:** Version bump only for package @antfu/eslint-config-basic
# [0.6.0](https://github.com/antfu/eslint-config/compare/v0.5.1...v0.6.0) (2021-03-14)

View File

@@ -12,7 +12,7 @@ module.exports = {
'plugin:jsonc/recommended-with-jsonc',
'plugin:yml/standard',
],
plugins: ['unicorn'],
plugins: ['html', 'unicorn'],
settings: {
'import/resolver': {
node: { extensions: ['.js', '.mjs', '.ts', '.d.ts'] },
@@ -93,8 +93,8 @@ module.exports = {
'comma-style': ['error', 'last'],
'comma-dangle': ['error', 'always-multiline'],
'no-constant-condition': 'warn',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': 'error',
'no-console': 'error',
'no-cond-assign': ['error', 'always'],
'func-call-spacing': ['off', 'never'],
'key-spacing': ['error', { beforeColon: false, afterColon: true }],
@@ -106,7 +106,6 @@ module.exports = {
'LabeledStatement',
'WithStatement',
],
'no-spaced-func': 'error',
'object-curly-spacing': ['error', 'always'],
'no-return-await': 'off',
'space-before-function-paren': ['error', 'never'],
@@ -185,5 +184,8 @@ module.exports = {
'unicorn/prefer-type-error': 'error',
// Use new when throwing error
'unicorn/throw-new-error': 'error',
'no-use-before-define': ['error', { functions: false, classes: false, variables: true }],
'eslint-comments/disable-enable-pair': 'off',
},
}

View File

@@ -1,17 +1,17 @@
{
"name": "@antfu/eslint-config-basic",
"version": "0.6.0",
"version": "0.6.5",
"description": "",
"main": "index.js",
"keywords": [],
"license": "MIT",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"scripts": {
"lint": "eslint . --config=index.js"
},
"files": [
"index.js"
],
"main": "index.js",
"scripts": {
"lint": "eslint . --config=index.js"
},
"publishConfig": {
"access": "public"
},
@@ -21,6 +21,7 @@
"dependencies": {
"eslint-config-standard": "^16.0.2",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-html": "^6.1.2",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsonc": "^1.2.1",
"eslint-plugin-node": "^11.1.0",

View File

@@ -3,6 +3,46 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.6.5](https://github.com/antfu/eslint-config/compare/v0.6.4...v0.6.5) (2021-05-09)
**Note:** Version bump only for package @antfu/eslint-config-react
## [0.6.4](https://github.com/antfu/eslint-config/compare/v0.6.3...v0.6.4) (2021-04-19)
**Note:** Version bump only for package @antfu/eslint-config-react
## [0.6.3](https://github.com/antfu/eslint-config/compare/v0.6.2...v0.6.3) (2021-04-19)
**Note:** Version bump only for package @antfu/eslint-config-react
## [0.6.2](https://github.com/antfu/eslint-config/compare/v0.6.1...v0.6.2) (2021-03-15)
**Note:** Version bump only for package @antfu/eslint-config-react
## [0.6.1](https://github.com/antfu/eslint-config/compare/v0.6.0...v0.6.1) (2021-03-14)
**Note:** Version bump only for package @antfu/eslint-config-react
# [0.6.0](https://github.com/antfu/eslint-config/compare/v0.5.1...v0.6.0) (2021-03-14)

View File

@@ -1,17 +1,17 @@
{
"name": "@antfu/eslint-config-react",
"version": "0.6.0",
"version": "0.6.5",
"description": "",
"main": "index.js",
"keywords": [],
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT",
"scripts": {
"lint": "eslint . --config=index.js"
},
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"files": [
"index.js"
],
"main": "index.js",
"scripts": {
"lint": "eslint . --config=index.js"
},
"peerDependencies": {
"eslint": ">=7.4.0"
},
@@ -19,7 +19,7 @@
"access": "public"
},
"dependencies": {
"@antfu/eslint-config-ts": "^0.6.0",
"@antfu/eslint-config-ts": "^0.6.5",
"eslint-plugin-react": "^7.22.0"
},
"devDependencies": {

View File

@@ -3,6 +3,55 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.6.5](https://github.com/antfu/eslint-config/compare/v0.6.4...v0.6.5) (2021-05-09)
**Note:** Version bump only for package @antfu/eslint-config-ts
## [0.6.4](https://github.com/antfu/eslint-config/compare/v0.6.3...v0.6.4) (2021-04-19)
### Bug Fixes
* overrides ([8f3f8f5](https://github.com/antfu/eslint-config/commit/8f3f8f5a42e1864b42ba7b276b1e8efdb2e80e27))
## [0.6.3](https://github.com/antfu/eslint-config/compare/v0.6.2...v0.6.3) (2021-04-19)
### Bug Fixes
* eslint-basic rules do not take effect ([#56](https://github.com/antfu/eslint-config/issues/56)) ([412d848](https://github.com/antfu/eslint-config/commit/412d8480d951e8361dda69be8a7e8722c255b755))
## [0.6.2](https://github.com/antfu/eslint-config/compare/v0.6.1...v0.6.2) (2021-03-15)
### Bug Fixes
* only disable no-unused-vars on vue file ([6759593](https://github.com/antfu/eslint-config/commit/67595932e447824837d9776204c9b559cb06a185))
## [0.6.1](https://github.com/antfu/eslint-config/compare/v0.6.0...v0.6.1) (2021-03-14)
**Note:** Version bump only for package @antfu/eslint-config-ts
# [0.6.0](https://github.com/antfu/eslint-config/compare/v0.5.1...v0.6.0) (2021-03-14)

View File

@@ -1,8 +1,12 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const basic = require('@antfu/eslint-config-basic')
module.exports = {
extends: [
'@antfu/eslint-config-basic',
'plugin:@typescript-eslint/recommended',
],
overrides: basic.overrides,
rules: {
// TS
'no-useless-constructor': 'off',
@@ -12,7 +16,7 @@ module.exports = {
'@typescript-eslint/type-annotation-spacing': ['error', {}],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'no-redeclare': 'off',
'@typescript-eslint/no-redeclare': 'error',

View File

@@ -1,14 +1,14 @@
{
"name": "@antfu/eslint-config-ts",
"version": "0.6.0",
"version": "0.6.5",
"description": "",
"main": "index.js",
"keywords": [],
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"files": [
"index.js"
],
"main": "index.js",
"publishConfig": {
"access": "public"
},
@@ -17,7 +17,7 @@
"typescript": ">=3.9"
},
"dependencies": {
"@antfu/eslint-config-basic": "^0.6.0",
"@antfu/eslint-config-basic": "^0.6.5",
"@typescript-eslint/eslint-plugin": "^4.17.0",
"@typescript-eslint/parser": "^4.17.0"
},

View File

@@ -3,6 +3,49 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.6.5](https://github.com/antfu/eslint-config/compare/v0.6.4...v0.6.5) (2021-05-09)
**Note:** Version bump only for package @antfu/eslint-config-vue
## [0.6.4](https://github.com/antfu/eslint-config/compare/v0.6.3...v0.6.4) (2021-04-19)
**Note:** Version bump only for package @antfu/eslint-config-vue
## [0.6.3](https://github.com/antfu/eslint-config/compare/v0.6.2...v0.6.3) (2021-04-19)
**Note:** Version bump only for package @antfu/eslint-config-vue
## [0.6.2](https://github.com/antfu/eslint-config/compare/v0.6.1...v0.6.2) (2021-03-15)
### Bug Fixes
* only disable no-unused-vars on vue file ([6759593](https://github.com/antfu/eslint-config/commit/67595932e447824837d9776204c9b559cb06a185))
## [0.6.1](https://github.com/antfu/eslint-config/compare/v0.6.0...v0.6.1) (2021-03-14)
**Note:** Version bump only for package @antfu/eslint-config-vue
# [0.6.0](https://github.com/antfu/eslint-config/compare/v0.5.1...v0.6.0) (2021-03-14)

View File

@@ -6,6 +6,10 @@ module.exports = {
parserOptions: {
parser: '@typescript-eslint/parser',
},
rules: {
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'off',
},
},
],
extends: [

View File

@@ -1,14 +1,14 @@
{
"name": "@antfu/eslint-config-vue",
"version": "0.6.0",
"version": "0.6.5",
"description": "",
"main": "index.js",
"keywords": [],
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"files": [
"index.js"
],
"main": "index.js",
"peerDependencies": {
"eslint": ">=7.4.0"
},
@@ -16,7 +16,7 @@
"access": "public"
},
"dependencies": {
"@antfu/eslint-config-ts": "^0.6.0",
"@antfu/eslint-config-ts": "^0.6.5",
"eslint-plugin-vue": "7.7.0"
},
"devDependencies": {

16
pnpm-lock.yaml generated
View File

@@ -2230,14 +2230,10 @@ packages:
dependencies:
domelementtype: 2.1.0
domhandler: 4.0.0
entities: 2.0.3
entities: 2.2.0
dev: false
resolution:
integrity: sha512-n6kZFH/KlCrqs/1GHMOd5i2fd/beQHuehKdWvNNffbGHTr/almdhuVvTVFb3V7fglz+nC50fFusu3lY33h12pA==
/domelementtype/2.0.1:
dev: false
resolution:
integrity: sha512-5HOHUDsYZWV8FGWN0Njbr/Rn7f/eWSQi1v7+HsUVwXgn8nWWlL64zKDkS0n8ZmQ3mlWOMuXOnR+7Nx/5tMO5AQ==
/domelementtype/2.1.0:
dev: false
resolution:
@@ -2253,7 +2249,7 @@ packages:
/domutils/2.5.0:
dependencies:
dom-serializer: 1.2.0
domelementtype: 2.0.1
domelementtype: 2.1.0
domhandler: 4.0.0
dev: false
resolution:
@@ -2308,10 +2304,10 @@ packages:
node: '>=8.6'
resolution:
integrity: sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==
/entities/2.0.3:
/entities/2.2.0:
dev: false
resolution:
integrity: sha512-MyoZ0jgnLvB2X3Lg5HqpFmn1kybDiIfEQmKzTb5apr51Rb+T3KdmMiqa70T+bhGnyv7bQ6WMj2QMHpGMmlrUYQ==
integrity: sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==
/env-paths/2.2.0:
dev: true
engines:
@@ -3145,10 +3141,10 @@ packages:
integrity: sha512-fqhGdjk4av7mT9fU/B01dUtZ+WZSc/XEXMoLXDVZukiQRXxeHSSz3AqbeWRJHtF8EQYHlAgB1NSAHU0Cm7aqZA==
/htmlparser2/6.0.1:
dependencies:
domelementtype: 2.0.1
domelementtype: 2.1.0
domhandler: 4.0.0
domutils: 2.5.0
entities: 2.0.3
entities: 2.2.0
dev: false
resolution:
integrity: sha512-GDKPd+vk4jvSuvCbyuzx/unmXkk090Azec7LovXP8as1Hn8q9p3hbjmDGbUqqhknw0ajwit6LiiWqfiTUPMK7w==