Skip to content

Commit

Permalink
feat: use a whole new approach
Browse files Browse the repository at this point in the history
  • Loading branch information
P0lip committed Aug 24, 2021
1 parent e346e48 commit 4dd6daa
Show file tree
Hide file tree
Showing 85 changed files with 18,070 additions and 3,634 deletions.
28 changes: 28 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "14.17"
},
"shippedProposals": true
}
]
],
"env": {
"legacy": {
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "12.20"
},
"shippedProposals": true
}
]
]
}
}
}
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.{mjs,json}]
[*.{mjs,js,json}]
charset = utf-8
indent_style = space
indent_size = 2
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
src/parser
src/parser/parser.cjs
src/parser/jsep/**
17 changes: 9 additions & 8 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
{
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 2020,
"ecmaVersion": 2021,
"sourceType": "module"
},
"globals": {
"globalThis": true
},
"env": {
"es6": true,
"shared-node-browser": true
"es6": true
},
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
"plugins": ["simple-import-sort"],
"rules": {
"func-names": "off",
"no-param-reassign": "warn",
"no-restricted-syntax": ["warn", "ArrayPattern", "ForOfStatement"],
"global-require": "warn",
"sort-keys": "error",
"no-continue": "off",
Expand All @@ -26,7 +29,8 @@
{ "blankLine": "always", "prev": "block-like", "next": "break" }
],

"prettier/prettier": "error"
"prettier/prettier": "error",
"simple-import-sort/imports": "error"
},
"overrides": [
{
Expand All @@ -35,9 +39,6 @@
"env": {
"node": true
},
"globals": {
"expect": true
},
"plugins": [
"chai-expect",
"chai-friendly"
Expand Down
2 changes: 1 addition & 1 deletion .huskyrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"hooks": {
"pre-commit": "npm run prepublish"
"pre-commit": "npm run lint && npm run test"
}
}
9 changes: 9 additions & 0 deletions .ls-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ls:
.mjs: kebab-case
.js: kebab-case
.test.mjs: kebab-case

ignore:
- dist
- node_modules
- rollup.config.js
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/erbium
16
Loading

0 comments on commit 4dd6daa

Please sign in to comment.