-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
50 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import globals from "globals"; | ||
|
||
export default [ | ||
{ | ||
files: ["src/*.js", "test/*.js"], | ||
languageOptions: { | ||
ecmaVersion: "latest", | ||
sourceType: "module", | ||
globals: { | ||
...globals.node | ||
} | ||
} | ||
} | ||
]; |
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 |
---|---|---|
@@ -1,12 +1,9 @@ | ||
{ | ||
"name": "language-tags", | ||
"version": "1.0.9", | ||
"implements": [ | ||
"CommonJS/Modules/1.0" | ||
], | ||
"description": "Work with IANA language tags.", | ||
"main": "lib/index.js", | ||
"type": "commonjs", | ||
"type": "module", | ||
"homepage": "https://github.com/mattcg/language-tags", | ||
"author": "Matthew Caruana Galizia <[email protected]>", | ||
"repository": { | ||
|
@@ -21,8 +18,8 @@ | |
"prepublishOnly": "npm run build", | ||
"prebuild": "rimraf lib && mkdirp lib", | ||
"build": "babel src -d lib", | ||
"lint": "eslint --ext=js,mjs .", | ||
"tests-only": "nyc mocha --recursive test", | ||
"lint": "eslint ./src ./test", | ||
"tests-only": "nyc mocha", | ||
"pretest": "npm run lint", | ||
"test": "npm run tests-only" | ||
}, | ||
|
@@ -41,37 +38,16 @@ | |
"@babel/cli": "^7.22.10", | ||
"@babel/preset-env": "^7.22.10", | ||
"coveralls": "^3.1.1", | ||
"eslint": "^8.47.0", | ||
"mkdirp": "^0.5.6", | ||
"mocha": "^3.5.3", | ||
"nyc": "^10.3.2", | ||
"rimraf": "^2.7.1" | ||
"eslint": "^9.17.0", | ||
"mkdirp": "^3.0.1", | ||
"mocha": "^11.0.1", | ||
"nyc": "^17.1.0", | ||
"rimraf": "^6.0.1" | ||
}, | ||
"files": [ | ||
"/lib" | ||
], | ||
"engines": { | ||
"node": ">=0.10" | ||
}, | ||
"eslintConfig": { | ||
"parserOptions": { | ||
"ecmaVersion": 2022, | ||
"sourceType": "script" | ||
}, | ||
"env": { | ||
"node": true | ||
}, | ||
"ignorePatterns": [ | ||
"!.babelrc.js" | ||
], | ||
"overrides": [ | ||
{ | ||
"files": "test/**", | ||
"globals": { | ||
"suite": false, | ||
"test": false | ||
} | ||
} | ||
] | ||
} | ||
} |
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
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