Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
58b8383d4c | ||
|
|
35a5d3ef9d | ||
|
|
f618005402 |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@antfu/eslint-config-monorepo",
|
"name": "@antfu/eslint-config-monorepo",
|
||||||
"version": "0.23.0",
|
"version": "0.23.1",
|
||||||
"packageManager": "pnpm@7.0.0",
|
"packageManager": "pnpm@7.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@antfu/eslint-config",
|
"name": "@antfu/eslint-config",
|
||||||
"version": "0.23.0",
|
"version": "0.23.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -44,9 +44,15 @@ module.exports = {
|
|||||||
files: ['*.json', '*.json5'],
|
files: ['*.json', '*.json5'],
|
||||||
parser: 'jsonc-eslint-parser',
|
parser: 'jsonc-eslint-parser',
|
||||||
rules: {
|
rules: {
|
||||||
'jsonc/quotes': ['error', 'double'],
|
'jsonc/array-bracket-spacing': ['error', 'never'],
|
||||||
'jsonc/quote-props': ['error', 'always'],
|
|
||||||
'jsonc/comma-dangle': ['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 }],
|
'no-use-before-define': ['error', { functions: false, classes: false, variables: true }],
|
||||||
'eslint-comments/disable-enable-pair': 'off',
|
'eslint-comments/disable-enable-pair': 'off',
|
||||||
'import/no-named-as-default-member': 'off',
|
'import/no-named-as-default-member': 'off',
|
||||||
|
'import/no-named-as-default': 'off',
|
||||||
|
'import/namespace': 'off',
|
||||||
'n/no-callback-literal': 'off',
|
'n/no-callback-literal': 'off',
|
||||||
|
|
||||||
'sort-imports': [
|
'sort-imports': [
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@antfu/eslint-config-basic",
|
"name": "@antfu/eslint-config-basic",
|
||||||
"version": "0.23.0",
|
"version": "0.23.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "eslint-plugin-antfu",
|
"name": "eslint-plugin-antfu",
|
||||||
"version": "0.23.0",
|
"version": "0.23.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "./dist/index.cjs",
|
"main": "./dist/index.cjs",
|
||||||
"module": "./dist/index.mjs",
|
"module": "./dist/index.mjs",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@antfu/eslint-config-react",
|
"name": "@antfu/eslint-config-react",
|
||||||
"version": "0.23.0",
|
"version": "0.23.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -126,5 +126,6 @@ module.exports = {
|
|||||||
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
||||||
'@typescript-eslint/ban-types': 'off',
|
'@typescript-eslint/ban-types': 'off',
|
||||||
'@typescript-eslint/no-namespace': 'off',
|
'@typescript-eslint/no-namespace': 'off',
|
||||||
|
'@typescript-eslint/triple-slash-reference': 'off',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@antfu/eslint-config-ts",
|
"name": "@antfu/eslint-config-ts",
|
||||||
"version": "0.23.0",
|
"version": "0.23.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@antfu/eslint-config-vue",
|
"name": "@antfu/eslint-config-vue",
|
||||||
"version": "0.23.0",
|
"version": "0.23.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
Reference in New Issue
Block a user