Compare commits

..

3 Commits

Author SHA1 Message Date
Anthony Fu
58b8383d4c release v0.23.1 2022-05-13 23:22:44 +08:00
Anthony Fu
35a5d3ef9d chore: disable rules 2022-05-13 23:15:35 +08:00
zz
f618005402 fix: add missing extension rules (#90) 2022-05-05 23:51:20 +08:00
9 changed files with 18 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config-monorepo",
"version": "0.23.0",
"version": "0.23.1",
"packageManager": "pnpm@7.0.0",
"private": true,
"license": "MIT",

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config",
"version": "0.23.0",
"version": "0.23.1",
"description": "",
"keywords": [],
"license": "MIT",

View File

@@ -44,9 +44,15 @@ module.exports = {
files: ['*.json', '*.json5'],
parser: 'jsonc-eslint-parser',
rules: {
'jsonc/quotes': ['error', 'double'],
'jsonc/quote-props': ['error', 'always'],
'jsonc/array-bracket-spacing': ['error', 'never'],
'jsonc/comma-dangle': ['error', 'never'],
'jsonc/comma-style': ['error', 'last'],
'jsonc/indent': ['error', 2],
'jsonc/key-spacing': ['error', { beforeColon: false, afterColon: true }],
'jsonc/no-octal-escape': 'error',
'jsonc/object-curly-newline': ['error', { multiline: true, consistent: true }],
'jsonc/object-curly-spacing': ['error', 'always'],
'jsonc/object-property-newline': ['error', { allowMultiplePropertiesPerLine: true }],
},
},
{
@@ -282,6 +288,8 @@ module.exports = {
'no-use-before-define': ['error', { functions: false, classes: false, variables: true }],
'eslint-comments/disable-enable-pair': 'off',
'import/no-named-as-default-member': 'off',
'import/no-named-as-default': 'off',
'import/namespace': 'off',
'n/no-callback-literal': 'off',
'sort-imports': [

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config-basic",
"version": "0.23.0",
"version": "0.23.1",
"description": "",
"keywords": [],
"license": "MIT",

View File

@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-antfu",
"version": "0.23.0",
"version": "0.23.1",
"license": "MIT",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config-react",
"version": "0.23.0",
"version": "0.23.1",
"description": "",
"keywords": [],
"license": "MIT",

View File

@@ -126,5 +126,6 @@ module.exports = {
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/triple-slash-reference': 'off',
},
}

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config-ts",
"version": "0.23.0",
"version": "0.23.1",
"description": "",
"keywords": [],
"license": "MIT",

View File

@@ -1,6 +1,6 @@
{
"name": "@antfu/eslint-config-vue",
"version": "0.23.0",
"version": "0.23.1",
"description": "",
"keywords": [],
"license": "MIT",