mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 19:28:39 +00:00
Build ECMAScript modules (#1479)
* Separate type import statement from module import statement * Remove extension from import statements * Build ECMAScript modules * Add `cross-env` devDependency * Use `babel-plugin-import-rename` instead of custom plugin * Improve `.babelrc` style and add comments * Update README.md * Change file extension to `.mjs` Comply with Node.js spec. Use extensionless package:main. * Enforce only ESM compatible imports * Dedupe packages * Add `unicodeMake.js` to overrides:excludedFiles * Fix .eslintrc merge conflict * Use rollup to bundle ES module * Remove `eslint-plugin-import` * Change build directory to `dist` * Change build directory to `dist` * Change build directory * Move docs from README.md to browser.md * Update update-sri.js * Revert update-sri.js * Revert update-sri.js * Update .eslintrc * Remove SSH key testing
This commit is contained in:
13
.eslintrc
13
.eslintrc
@@ -71,18 +71,21 @@
|
||||
"valid-jsdoc": 0,
|
||||
"require-jsdoc": 0
|
||||
},
|
||||
"env": {
|
||||
"es6": true,
|
||||
"node": true,
|
||||
"browser": true
|
||||
},
|
||||
"overrides": [{
|
||||
"files": ["katex.js", "src/**/*.js", "contrib/**/*.js"],
|
||||
"excludedFiles": ["*-spec.js", "unicodeMake.js"],
|
||||
"rules": {
|
||||
"no-restricted-syntax": [2, "ForOfStatement", "ClassDeclaration[superClass]", "ClassExpression[superClass]"],
|
||||
"transform-runtime-aliasing/no-transform-runtime-aliasing": 2
|
||||
},
|
||||
"env": {
|
||||
"node": false
|
||||
}
|
||||
}],
|
||||
"env": {
|
||||
"es6": true,
|
||||
"node": true,
|
||||
"browser": true
|
||||
},
|
||||
"root": true
|
||||
}
|
||||
|
Reference in New Issue
Block a user