Skip to content

Commit ae72fcb

Browse files
committed
Update linters
1 parent 065bc24 commit ae72fcb

3 files changed

Lines changed: 13 additions & 10 deletions

File tree

eslint.config.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
'use strict';
1+
import init from 'eslint-config-metarhia';
22

3-
const init = require('eslint-config-metarhia');
4-
5-
module.exports = [
3+
export default [
64
...init,
75
{
8-
files: ['server.js', 'shared/**/*.mjs', 'static/**/*.mjs'],
6+
files: [
7+
'*.config.js',
8+
'server.js',
9+
'routes/**/*.js',
10+
'shared/**/*.mjs',
11+
'static/**/*.mjs',
12+
],
913
languageOptions: {
1014
sourceType: 'module',
1115
},

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
"name": "example",
33
"private": true,
44
"version": "1.0.0",
5+
"type": "module",
56
"author": "Timur Shemsedinov <timur.shemsedinov@gmail.com>",
67
"license": "MIT",
78
"scripts": {
8-
"lint": "eslint . && prettier --check --no-error-on-unmatched-pattern \"**/*.js\" \"**/*.json\" \"**/*.md\" \"**/*.ts\"",
9-
"fix": "eslint . --fix && prettier --write --no-error-on-unmatched-pattern \"**/*.js\" \"**/*.json\" \"**/*.md\" \"**/*.ts\""
9+
"lint": "eslint . && prettier --check --no-error-on-unmatched-pattern \"**/*.js\" \"**/*.mjs\" \"**/*.json\" \"**/*.md\" \"**/*.ts\"",
10+
"fix": "eslint . --fix && prettier --write --no-error-on-unmatched-pattern \"**/*.js\" \"**/*.mjs\" \"**/*.json\" \"**/*.md\" \"**/*.ts\""
1011
},
1112
"devDependencies": {
1213
"eslint": "^10.4.1",

prettier.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
'use strict';
2-
3-
module.exports = {
1+
export default {
42
printWidth: 80,
53
singleQuote: true,
64
trailingComma: 'all',

0 commit comments

Comments
 (0)