Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
5d908028ca | ||
|
610d886afd | ||
|
aefa76e48a | ||
|
e787e9a647 | ||
|
a3598d36d2 | ||
|
7b399a63db | ||
|
bb09e1d6b4 |
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config-monorepo",
|
||||
"version": "0.39.2",
|
||||
"version": "0.39.4",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@8.5.1",
|
||||
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
||||
|
@@ -259,6 +259,22 @@ module.exports = {
|
||||
asyncArrow: 'always',
|
||||
},
|
||||
],
|
||||
'no-restricted-globals': [
|
||||
'error',
|
||||
{ name: 'global', message: 'Use `globalThis` instead.' },
|
||||
{ name: 'self', message: 'Use `globalThis` instead.' },
|
||||
{ name: 'isNaN', message: 'Use `Number.isNaN` instead' },
|
||||
{ name: 'isFinite', message: 'Use `Number.isFinite` instead' },
|
||||
{ name: 'parseFloat', message: 'Use `Number.parseFloat` instead' },
|
||||
{ name: 'parseInt', message: 'Use `Number.parseInt` instead' },
|
||||
],
|
||||
'no-restricted-properties': [
|
||||
'error',
|
||||
{ object: 'globalThis', property: 'isNaN', message: 'Use `Number.isNaN` instead' },
|
||||
{ object: 'globalThis', property: 'isFinite', message: 'Use `Number.isFinite` instead' },
|
||||
{ object: 'globalThis', property: 'parseFloat', message: 'Use `Number.parseFloat` instead' },
|
||||
{ object: 'globalThis', property: 'parseInt', message: 'Use `Number.parseInt` instead' },
|
||||
],
|
||||
|
||||
// es6
|
||||
'no-var': 'error',
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config-basic",
|
||||
"version": "0.39.2",
|
||||
"version": "0.39.4",
|
||||
"description": "",
|
||||
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
||||
"license": "MIT",
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config-react",
|
||||
"version": "0.39.2",
|
||||
"version": "0.39.4",
|
||||
"description": "",
|
||||
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
||||
"license": "MIT",
|
||||
|
@@ -72,6 +72,7 @@ module.exports = {
|
||||
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
|
||||
'@typescript-eslint/prefer-ts-expect-error': 'error',
|
||||
'@typescript-eslint/no-require-imports': 'error',
|
||||
'@typescript-eslint/consistent-type-assertions': ['error', { assertionStyle: 'as', objectLiteralTypeAssertions: 'allow-as-parameter' }],
|
||||
|
||||
// Override JS
|
||||
'no-useless-constructor': 'off',
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config-ts",
|
||||
"version": "0.39.2",
|
||||
"version": "0.39.4",
|
||||
"description": "",
|
||||
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
||||
"license": "MIT",
|
||||
|
@@ -36,6 +36,7 @@ module.exports = {
|
||||
'vue/multi-word-component-names': 'off',
|
||||
'vue/prefer-import-from-vue': 'off',
|
||||
'vue/no-v-text-v-html-on-component': 'off',
|
||||
'vue/no-dupe-keys': 'off',
|
||||
|
||||
// reactivity transform
|
||||
'vue/no-setup-props-destructure': 'off',
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config-vue",
|
||||
"version": "0.39.2",
|
||||
"version": "0.39.4",
|
||||
"description": "",
|
||||
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
||||
"license": "MIT",
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config",
|
||||
"version": "0.39.2",
|
||||
"version": "0.39.4",
|
||||
"description": "Anthony's ESLint config",
|
||||
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
||||
"license": "MIT",
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "eslint-plugin-antfu",
|
||||
"version": "0.39.2",
|
||||
"version": "0.39.4",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/antfu/eslint-config",
|
||||
"main": "./dist/index.cjs",
|
||||
|
Reference in New Issue
Block a user