-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from editor-js/release/2.0
Release/2.0
- Loading branch information
Showing
50 changed files
with
5,002 additions
and
2,400 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import CodeX from 'eslint-config-codex'; | ||
import { plugin as TsPlugin, parser as TsParser } from 'typescript-eslint'; | ||
|
||
export default [ | ||
...CodeX, | ||
|
||
/** | ||
* Redefine language options and some of the rules of CodeX eslint config for javascript config | ||
*/ | ||
{ | ||
files: ['vite.config.js', 'eslint.config.mjs', 'postcss.config.js', '**/json-preview.js'], | ||
languageOptions: { | ||
parserOptions: { | ||
project: './tsconfig.eslint.json', | ||
ecmaVersion: 2022, | ||
sourceType: 'module', | ||
}, | ||
}, | ||
rules: { | ||
'n/no-extraneous-import': ['error', { | ||
allowModules: ['typescript-eslint'], | ||
}], | ||
}, | ||
}, | ||
|
||
/** | ||
* Redefine language oprions and some of the rules of the CodeX eslint config for typescript config | ||
*/ | ||
{ | ||
name: 'editorjs-list', | ||
ignores: ['vite.config.js', 'eslint.config.mjs', 'postcss.config.js', '**/json-preview.js'], | ||
plugins: { | ||
'@typescript-eslint': TsPlugin, | ||
}, | ||
|
||
/** | ||
* This are the options for typescript files | ||
*/ | ||
languageOptions: { | ||
parser: TsParser, | ||
parserOptions: { | ||
project: './tsconfig.eslint.json', | ||
tsconfigRootDir: './', | ||
sourceType: 'module', // Allows for the use of imports | ||
}, | ||
}, | ||
|
||
rules: { | ||
'n/no-missing-import': ['off'], | ||
'n/no-unpublished-import': ['error', { | ||
allowModules: ['eslint-config-codex'], | ||
ignoreTypeImport: true, | ||
}], | ||
'n/no-unsupported-features/node-builtins': ['error', { | ||
version: '>=22.1.0', | ||
}], | ||
'@typescript-eslint/no-empty-object-type': ['error', { | ||
allowInterfaces: 'always', | ||
}], | ||
}, | ||
}, | ||
]; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.