-
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.
Closes #65.
- Loading branch information
Showing
13 changed files
with
575 additions
and
561 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
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import configPrettier from 'eslint-config-prettier'; | ||
import pluginPrettier from 'eslint-plugin-prettier'; | ||
import pluginUnicorn from 'eslint-plugin-unicorn'; | ||
import pluginImport from 'eslint-plugin-import'; | ||
import configTest from './tests.js'; | ||
import configBase from './index.js'; | ||
|
||
export default [ | ||
configBase, | ||
configPrettier, | ||
{ | ||
plugins: { | ||
prettier: pluginPrettier, | ||
unicorn: pluginUnicorn, | ||
import: pluginImport | ||
}, | ||
'rules': { | ||
'prettier/prettier': 1, | ||
'unicorn/prefer-module': 0, | ||
'import/no-commonjs': 0 | ||
} | ||
}, | ||
{ | ||
'files': ['*.js'], | ||
plugins: { | ||
unicorn: pluginUnicorn | ||
}, | ||
'rules': { | ||
'unicorn/prevent-abbreviations': [ | ||
1, | ||
{ | ||
'allowList': { | ||
'env': true, | ||
'props': true, | ||
'prev': true, | ||
'ignoreRefs': true | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
...configTest, | ||
'files': ['test/**'], | ||
plugins: { | ||
...configTest.plugins, | ||
unicorn: pluginUnicorn, | ||
import: pluginImport | ||
}, | ||
'rules': { | ||
...configTest.rules, | ||
'unicorn/prefer-module': 2, | ||
'import/no-commonjs': 2 | ||
} | ||
}, | ||
{ | ||
ignores: ['**/test/fixtures/*.config.*'] | ||
} | ||
]; |
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 |
---|---|---|
|
@@ -5,6 +5,14 @@ | |
"license": "MIT", | ||
"author": "Ivan Nikolić <[email protected]> (http://ivannikolic.com)", | ||
"main": "index.js", | ||
"type": "module", | ||
"exports": { | ||
".": "./index.js", | ||
"./browser": "./browser.js", | ||
"./tests": "./tests.js", | ||
"./vue": "./vue.js", | ||
"./typescript": "./typescript.js" | ||
}, | ||
"directories": { | ||
"test": "test" | ||
}, | ||
|
@@ -16,35 +24,36 @@ | |
"scripts": { | ||
"lint": "eslint '{index,browser,tests,vue,typescript,test/index}.js'", | ||
"release": "np --no-release-draft", | ||
"test": "npm run lint && eslint-find-rules -u ./test/fixtures/all-rules.cjs && mocha 'test/index.js'", | ||
"test": "npm run lint && mocha 'test/index.js'", | ||
"test:watch": "npm test -- --watch", | ||
"version": "if [ $(git rev-parse --abbrev-ref HEAD) == 'master' ]; then sed -i '' '/\\[unreleased\\]:/d' CHANGELOG.md && version-changelog CHANGELOG.md && changelog-verify CHANGELOG.md && git add CHANGELOG.md; else echo; fi", | ||
"postpublish": "GITHUB_TOKEN=$GITHUB_RELEASE_TOKEN github-release-from-changelog", | ||
"prerelease": "npm run lint" | ||
}, | ||
"dependencies": { | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-jsdoc": "^48.2.2", | ||
"eslint-plugin-mocha": "^10.1.0", | ||
"eslint-plugin-n": "^17.2.0", | ||
"eslint-plugin-promise": "^6.1.1", | ||
"eslint-plugin-unicorn": "^51.0.1", | ||
"eslint-plugin-vue": "^9.7.0", | ||
"resolve-from": "^5.0.0" | ||
"eslint-plugin-import": "^2.31.0", | ||
"eslint-plugin-jsdoc": "^50.5.0", | ||
"eslint-plugin-mocha": "^10.5.0", | ||
"eslint-plugin-n": "^17.13.2", | ||
"eslint-plugin-promise": "^7.1.0", | ||
"eslint-plugin-unicorn": "^56.0.0", | ||
"eslint-plugin-vue": "^9.31.0", | ||
"globals": "^15.12.0", | ||
"resolve-from": "^5.0.0", | ||
"vue-eslint-parser": "^9.4.3" | ||
}, | ||
"devDependencies": { | ||
"changelog-verify": "^1.1.2", | ||
"eslint": "^8.57.0", | ||
"eslint": "^9.15.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-find-rules": "^4.0.0", | ||
"eslint-plugin-prettier": "^5.1.3", | ||
"eslint-plugin-prettier": "^5.2.1", | ||
"github-release-from-changelog": "^2.1.1", | ||
"husky": "^4.3.0", | ||
"husky": "^4.3.8", | ||
"lint-staged": "^10.4.2", | ||
"lodash": "^4.17.10", | ||
"mocha": "^10.4.0", | ||
"np": "^7.6.0", | ||
"prettier": "^3.2.5", | ||
"lodash": "^4.17.21", | ||
"mocha": "^10.8.2", | ||
"np": "^7.7.0", | ||
"prettier": "^3.3.3", | ||
"version-changelog": "^3.1.1" | ||
}, | ||
"peerDependencies": { | ||
|
Oops, something went wrong.