Skip to content

Commit 026ee84

Browse files
committed
chore: fix linting issues after switch from standardx to gts
1 parent 1a3d4f5 commit 026ee84

File tree

10 files changed

+501
-424
lines changed

10 files changed

+501
-424
lines changed

.eslintrc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"extends": "./node_modules/gts/",
3+
"overrides": [
4+
{
5+
"files": "*.ts",
6+
"rules": {
7+
"no-unused-vars": "off",
8+
"no-useless-constructor": "off",
9+
"@typescript-eslint/no-unused-vars": "error",
10+
"@typescript-eslint/no-useless-constructor": "error"
11+
}
12+
}
13+
],
14+
"parserOptions": {
15+
"ecmaVersion": 2020,
16+
"sourceType": "module"
17+
},
18+
19+
"plugins": [
20+
"@typescript-eslint/eslint-plugin"
21+
]
22+
}

.prettierrc.cjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
...require('gts/.prettierrc.json')
3+
}

deno.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { y18n as _y18n } from './build/lib/index.js'
2-
import type { Y18NOpts } from './build/lib/index.d.ts'
3-
import shim from './lib/platform-shims/deno.ts'
1+
import {y18n as _y18n} from './build/lib/index.js';
2+
import type {Y18NOpts} from './build/lib/index.d.ts';
3+
import shim from './lib/platform-shims/deno.ts';
44

55
const y18n = (opts: Y18NOpts) => {
6-
return _y18n(opts, shim)
7-
}
6+
return _y18n(opts, shim);
7+
};
88

9-
export default y18n
9+
export default y18n;

index.mjs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import shim from './build/lib/platform-shims/node.js'
2-
import { y18n as _y18n } from './build/lib/index.js'
1+
import shim from './build/lib/platform-shims/node.js';
2+
import {y18n as _y18n} from './build/lib/index.js';
33

4-
const y18n = (opts) => {
5-
return _y18n(opts, shim)
6-
}
4+
const y18n = opts => {
5+
return _y18n(opts, shim);
6+
};
77

8-
export default y18n
8+
export default y18n;
99

10-
export { y18n as 'module.exports' };
10+
export {y18n as 'module.exports'};

0 commit comments

Comments
 (0)