Skip to content

Commit

Permalink
Merge pull request #75 from editor-js/feature/add-eslint-support
Browse files Browse the repository at this point in the history
ft: eslint support, merged with changes from master branch
  • Loading branch information
neSpecc authored Dec 3, 2024
2 parents e91913d + 171d72f commit 9aa676b
Show file tree
Hide file tree
Showing 4 changed files with 2,038 additions and 172 deletions.
24 changes: 24 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import CodeX from 'eslint-config-codex'
import { plugin as TsPlugin, parser as TsParser } from 'typescript-eslint';


export default [
...CodeX,
{
files: ['src/**/*.ts'],
languageOptions: {
parser: TsParser,
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: './',
sourceType: 'module',
},
},
rules: {
'n/no-missing-import': ['off'],
}
},
{
ignores: ['dev/**', 'eslint.config.mjs', 'vite.config.js', 'postcss.config.js']
}
]
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@editorjs/quote",
"version": "2.7.4",
"version": "2.7.5",
"keywords": [
"codex editor",
"quote",
Expand All @@ -26,15 +26,20 @@
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
"preview": "vite preview",
"lint": "eslint",
"lint:errors": "eslint --quiet",
"lint:fix": "eslint --fix"
},
"author": {
"name": "CodeX",
"email": "[email protected]"
},
"devDependencies": {
"@editorjs/editorjs": "^2.30.7",
"typescript": "^5.4.5",
"eslint": "^9.15.0",
"eslint-config-codex": "^2.0.3",
"typescript-eslint": "^8.15.0",
"vite": "^4.5.0",
"vite-plugin-css-injected-by-js": "^3.3.0",
"vite-plugin-dts": "^3.9.1"
Expand Down
Loading

0 comments on commit 9aa676b

Please sign in to comment.