forked from isaul32/ckeditor5-math
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor!: New installation method via
ckeditor-package-tools
2.1.0
- Loading branch information
Showing
32 changed files
with
3,384 additions
and
1,761 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
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 |
---|---|---|
@@ -1,60 +1,46 @@ | ||
/* eslint-env node */ | ||
|
||
'use strict'; | ||
|
||
module.exports = { | ||
extends: [ | ||
"ckeditor5", | ||
"plugin:@typescript-eslint/strict", | ||
"plugin:@typescript-eslint/stylistic-type-checked", | ||
extends: 'ckeditor5', | ||
parser: '@typescript-eslint/parser', | ||
plugins: [ | ||
'@typescript-eslint' | ||
], | ||
root: true, | ||
plugins: ["@typescript-eslint"], | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
project: true, | ||
__tsconfigRootDir: __dirname, | ||
ecmaVersion: "latest", | ||
sourceType: "module", | ||
}, | ||
globals: { | ||
MathJax: true, | ||
katex: true, | ||
console: true, | ||
}, | ||
ignorePatterns: [ | ||
// Ignore the entire `build/` (the DLL build). | ||
"build/**", | ||
// Ignore the entire `dist/` (the NIM build). | ||
'dist/**', | ||
// Ignore compiled JavaScript files, as they are generated automatically. | ||
'src/**/*.js', | ||
// Also, do not check typing declarations, too. | ||
'src/**/*.d.ts' | ||
], | ||
rules: { | ||
// This rule disallows importing core DLL packages directly. Imports should be done using the `ckeditor5` package. | ||
// Also, importing non-DLL packages is not allowed. If the package requires other features to work, they should be | ||
// specified as soft-requirements. | ||
// Read more: https://ckeditor.com/docs/ckeditor5/latest/builds/guides/migration/migration-to-26.html#soft-requirements. | ||
"ckeditor5-rules/ckeditor-imports": "error", | ||
|
||
// This rule could not be found ??? | ||
"ckeditor5-rules/use-require-for-debug-mode-imports": "off", | ||
|
||
"no-void": ["error", { allowAsStatement: true }], | ||
// This rule disallows importing from any path other than the package main entrypoint. | ||
'ckeditor5-rules/allow-imports-only-from-main-package-entry-point': 'error', | ||
// This rule ensures that all imports from `@ckeditor/*` packages are done through the main package entry points. | ||
// This is required for the editor types to work properly and to ease migration to the installation methods | ||
// introduced in CKEditor 5 version 42.0.0. | ||
'ckeditor5-rules/no-legacy-imports': 'error', | ||
// As required by the ECMAScript (ESM) standard, all imports must include a file extension. | ||
// If the import does not include it, this rule will try to automatically detect the correct file extension. | ||
'ckeditor5-rules/require-file-extensions-in-imports': [ | ||
'error', | ||
{ | ||
extensions: [ '.ts', '.js', '.json' ] | ||
} | ||
] | ||
}, | ||
overrides: [ | ||
{ | ||
files: [ 'tests/**/*.[jt]s', 'sample/**/*.[jt]s' ], | ||
rules: { | ||
// To write complex tests, you may need to import files that are not exported in DLL files by default. | ||
// Hence, imports CKEditor 5 packages in test files are not checked. | ||
"ckeditor5-rules/ckeditor-imports": "off", | ||
}, | ||
}, | ||
{ | ||
env: { | ||
node: true, | ||
}, | ||
files: [".eslintrc.{js,cjs}"], | ||
parserOptions: { | ||
sourceType: "script", | ||
}, | ||
}, | ||
], | ||
'ckeditor5-rules/ckeditor-imports': 'off' | ||
} | ||
} | ||
] | ||
}; |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
node_modules/ | ||
build/ | ||
dist/ | ||
tmp/ | ||
sample/ckeditor.dist.js | ||
package-lock.json | ||
|
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
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 |
---|---|---|
@@ -1,23 +1,23 @@ | ||
{ | ||
"plugins": [ | ||
{ | ||
"name": "Math", | ||
"className": "Math", | ||
"description": "Adds mathematical formulas to the editor.", | ||
"path": "src/math.js", | ||
"uiComponents": [ | ||
{ | ||
"name": "math", | ||
"type": "Button", | ||
"iconPath": "theme/icons/math.svg" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "AutoformatMath", | ||
"className": "AutoformatMath", | ||
"description": "Implements autoformatting with mathematical formulas.", | ||
"path": "src/autoformatmath.js" | ||
} | ||
] | ||
"plugins": [ | ||
{ | ||
"name": "Math", | ||
"className": "Math", | ||
"description": "Adds mathematical formulas to the editor.", | ||
"path": "src/math.ts", | ||
"uiComponents": [ | ||
{ | ||
"name": "math", | ||
"type": "Button", | ||
"iconPath": "theme/icons/math.svg" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "AutoformatMath", | ||
"className": "AutoformatMath", | ||
"description": "Implements autoformatting with mathematical formulas.", | ||
"path": "src/autoformatmath.ts" | ||
} | ||
] | ||
} |
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,3 @@ | ||
{ | ||
"Math": "Adds mathematical formulas to the editor." | ||
} |
Oops, something went wrong.