Skip to content

Commit 61b2a43

Browse files
committed
chore: migrate to ecmascript modules
This is a significant change! Every single CommonJS module in the code base was migrated to a proper EcmaScript module.
1 parent 6f00347 commit 61b2a43

File tree

132 files changed

+1937
-1307
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+1937
-1307
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ root/
55
build/
66
tmp/
77
packages/keybr-code/lib/parser.js
8+
*.cjs

.eslintrc.js .eslintrc.cjs

-12
Original file line numberDiff line numberDiff line change
@@ -77,18 +77,6 @@ module.exports = {
7777
"n/prefer-promises/dns": "error",
7878
"n/prefer-promises/fs": "error",
7979
},
80-
overrides: [
81-
{
82-
files: ["*.js"],
83-
parserOptions: {
84-
sourceType: "script",
85-
},
86-
rules: {
87-
"strict": ["error", "global"],
88-
"@typescript-eslint/no-var-requires": "off",
89-
},
90-
},
91-
],
9280
settings: {
9381
react: {
9482
version: "detect",

.lagerc.js .lagerc.cjs

File renamed without changes.

.lintstagedrc.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"use strict";
2-
3-
module.exports = {
1+
export default {
42
"*.{js,jsx,ts,tsx}": ["prettier --write", "eslint --fix"],
53
"*.{less,css}": ["prettier --write", "stylelint --fix"],
64
};

.prettierrc.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"use strict";
2-
3-
module.exports = {
1+
export default {
42
trailingComma: "all",
53
quoteProps: "consistent",
64
};

.stylelintrc.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"use strict";
2-
3-
module.exports = {
1+
export default {
42
customSyntax: "postcss-less",
53
extends: ["stylelint-config-recommended"],
64
plugins: ["stylelint-plugin-logical-css", "stylelint-order"],

0 commit comments

Comments
 (0)