mirror of
https://github.com/scratchfoundation/eslint-config-scratch.git
synced 2025-06-30 08:20:32 -04:00
parent
6b37df906c
commit
152673ff39
3 changed files with 1570 additions and 147 deletions
|
@ -5,12 +5,12 @@ import htmlSettings from 'eslint-plugin-html/src/settings.js'
|
||||||
import importPlugin from 'eslint-plugin-import'
|
import importPlugin from 'eslint-plugin-import'
|
||||||
import jsdoc from 'eslint-plugin-jsdoc'
|
import jsdoc from 'eslint-plugin-jsdoc'
|
||||||
import jsxA11y from 'eslint-plugin-jsx-a11y'
|
import jsxA11y from 'eslint-plugin-jsx-a11y'
|
||||||
import markdown from 'eslint-plugin-markdown'
|
|
||||||
import react from 'eslint-plugin-react'
|
import react from 'eslint-plugin-react'
|
||||||
import reactHooks from 'eslint-plugin-react-hooks'
|
import reactHooks from 'eslint-plugin-react-hooks'
|
||||||
import tseslint from 'typescript-eslint'
|
import tseslint from 'typescript-eslint'
|
||||||
import eslintComments from '@eslint-community/eslint-plugin-eslint-comments/configs'
|
import eslintComments from '@eslint-community/eslint-plugin-eslint-comments/configs'
|
||||||
import eslint from '@eslint/js'
|
import eslint from '@eslint/js'
|
||||||
|
import markdown from '@eslint/markdown'
|
||||||
import legacyES6 from './legacy/es6.mjs'
|
import legacyES6 from './legacy/es6.mjs'
|
||||||
import legacyBase from './legacy/index.mjs'
|
import legacyBase from './legacy/index.mjs'
|
||||||
import legacyNode from './legacy/node.mjs'
|
import legacyNode from './legacy/node.mjs'
|
||||||
|
@ -81,7 +81,9 @@ const miscFileRules = tseslint.config([
|
||||||
name: 'scratch/miscFileRules[eslint-plugin-markdown]',
|
name: 'scratch/miscFileRules[eslint-plugin-markdown]',
|
||||||
files: fileGlobs.markdown,
|
files: fileGlobs.markdown,
|
||||||
extends: [markdown.configs.recommended],
|
extends: [markdown.configs.recommended],
|
||||||
|
language: 'markdown/gfm', // Github Flavored Markdown
|
||||||
},
|
},
|
||||||
|
markdown.configs.processor, // Process script blocks inside Markdown files
|
||||||
])
|
])
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -336,7 +338,6 @@ const recommended = tseslint.config(
|
||||||
{
|
{
|
||||||
name: 'scratch/recommended',
|
name: 'scratch/recommended',
|
||||||
},
|
},
|
||||||
miscFileRules,
|
|
||||||
{
|
{
|
||||||
files: fileGlobs.allScript,
|
files: fileGlobs.allScript,
|
||||||
extends: [typeFreeRules],
|
extends: [typeFreeRules],
|
||||||
|
@ -350,6 +351,7 @@ const recommended = tseslint.config(
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
miscFileRules,
|
||||||
eslintConfigPrettier,
|
eslintConfigPrettier,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
1709
package-lock.json
generated
1709
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -34,6 +34,7 @@
|
||||||
"@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
|
"@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
|
||||||
"@eslint/eslintrc": "3.3.1",
|
"@eslint/eslintrc": "3.3.1",
|
||||||
"@eslint/js": "9.25.1",
|
"@eslint/js": "9.25.1",
|
||||||
|
"@eslint/markdown": "6.4.0",
|
||||||
"@trivago/prettier-plugin-sort-imports": "5.2.2",
|
"@trivago/prettier-plugin-sort-imports": "5.2.2",
|
||||||
"eslint-config-prettier": "10.1.2",
|
"eslint-config-prettier": "10.1.2",
|
||||||
"eslint-plugin-formatjs": "5.3.1",
|
"eslint-plugin-formatjs": "5.3.1",
|
||||||
|
@ -41,7 +42,6 @@
|
||||||
"eslint-plugin-import": "2.31.0",
|
"eslint-plugin-import": "2.31.0",
|
||||||
"eslint-plugin-jsdoc": "50.6.11",
|
"eslint-plugin-jsdoc": "50.6.11",
|
||||||
"eslint-plugin-jsx-a11y": "6.10.2",
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
||||||
"eslint-plugin-markdown": "5.1.0",
|
|
||||||
"eslint-plugin-react": "7.37.5",
|
"eslint-plugin-react": "7.37.5",
|
||||||
"eslint-plugin-react-hooks": "5.2.0",
|
"eslint-plugin-react-hooks": "5.2.0",
|
||||||
"globals": "16.0.0",
|
"globals": "16.0.0",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue