Skip to content

Commit

Permalink
opt to eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
cungminh2710 committed Nov 29, 2022
1 parent 6f04a26 commit e77c3c5
Show file tree
Hide file tree
Showing 8 changed files with 1,521 additions and 889 deletions.
20 changes: 20 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
env: {
browser: true,
es2021: true,
node: true
},
extends: 'standard-with-typescript',
plugins: ['simple-import-sort'],
overrides: [],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
tsconfigRootDir: __dirname,
project: ['./tsconfig.json']
},
rules: {
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error'
}
}
4 changes: 0 additions & 4 deletions .prettierignore

This file was deleted.

9 changes: 0 additions & 9 deletions .prettierrc.yaml

This file was deleted.

18 changes: 10 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cungminh2710/pseudolocalize",
"version": "1.5.0",
"version": "1.5.1",
"description": "Several implementation of pseudolocalizing ICU strings",
"sideEffects": false,
"main": "dist/index.js",
Expand All @@ -19,8 +19,8 @@
"scripts": {
"build": "tsup src/index.ts --format esm,cjs --dts --treeshake --minify",
"clean": "bin/clean.sh",
"format": "prettier --config .prettierrc.yaml --write .",
"lint": "tslint -p tsconfig.json",
"format": "eslint src/*.ts --fix",
"lint": "eslint src/*.ts",
"prepare": "npm run build",
"prepublishOnly": "npm test && npm run lint",
"preversion": "npm run lint",
Expand All @@ -30,17 +30,19 @@
},
"devDependencies": {
"@formatjs/icu-messageformat-parser": "2.1.10",
"@swc/core": "1.3.20",
"@trivago/prettier-plugin-sort-imports": "3.3.1",
"@types/jest": "29.2.3",
"@typescript-eslint/eslint-plugin": "5.45.0",
"eslint": "8.28.0",
"eslint-config-standard-with-typescript": "23.0.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-n": "15.5.1",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-simple-import-sort": "8.0.0",
"intl-messageformat": "10.2.1",
"jest": "29.3.1",
"prettier": "2.8.0",
"react": "18.2.0",
"react-intl": "6.2.1",
"ts-jest": "29.0.3",
"tslint": "6.1.3",
"tslint-config-prettier": "1.18.0",
"tsup": "6.5.0",
"typescript": "4.8.4"
},
Expand Down
Loading

0 comments on commit e77c3c5

Please sign in to comment.