Skip to content

Commit 5317782

Browse files
committed
Support ESM, ES6, and start fixing JSDoc
1 parent 8ba6cf8 commit 5317782

23 files changed

+5216
-988
lines changed

.babelrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"presets": [
3+
["@babel/env"]
4+
]
5+
}

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
2+
dist
23
docs/jsdoc
34
scratch

.eslintrc.js

+17-11
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,33 @@
33
module.exports = {
44
"env": {
55
"browser": true,
6-
"commonjs": true,
76
"es6": true,
87
"node": true,
98
"mocha": true
109
},
11-
"extends": ["ash-nazg/sauron-node", "plugin:node/recommended-script"],
10+
"extends": ["ash-nazg/sauron-node"],
1211
"parserOptions": {
13-
"ecmaVersion": 2018
12+
"ecmaVersion": 2018,
13+
"sourceType": "module"
1414
},
1515
"settings": {
1616
"polyfills": [
17-
"Error",
18-
"Object.defineProperties",
19-
"Object.defineProperty"
17+
"console",
18+
"Error"
2019
]
2120
},
2221
"overrides": [
22+
{
23+
files: "docs/jsdoc-config.js",
24+
globals: {
25+
"module": "readonly"
26+
},
27+
rules: {
28+
strict: "off",
29+
"import/unambiguous": "off",
30+
"import/no-commonjs": "off"
31+
}
32+
},
2333
{
2434
files: ["**/*.md"],
2535
rules: {
@@ -70,11 +80,7 @@ module.exports = {
7080
"require-unicode-regexp": "off",
7181
"yoda": "off",
7282
"valid-jsdoc": 0,
73-
"import/unambiguous": 0,
74-
"global-require": 0,
75-
"import/no-commonjs": 0,
76-
"consistent-this": "off",
7783
"unicorn/prefer-type-error": "off",
78-
"node/shebang": "off"
84+
"consistent-this": "off"
7985
}
8086
};

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
docs/jsdoc
22
test
33
scratch
4+
rollup.config.js

0 commit comments

Comments
 (0)