Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ vendor
# 2. some tests fail cause they depend on some sources being exactly as they are
examples
!test/examples

# Test fixtures include compiled/generated files with sourcemaps
# Formatting them breaks the sourcemaps
test/fixtures
14 changes: 7 additions & 7 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ export default defineConfig([
},
rules: {
'comma-dangle': 'off',
'strict': 0,
strict: 0,
'no-underscore-dangle': 0,
'no-useless-escape': 0,
'complexity': [2, { 'max': 35 }],
'no-use-before-define': [0, { 'functions': false }],
complexity: [2, { max: 35 }],
'no-use-before-define': [0, { functions: false }],
'no-prototype-builtins': 0,

// Off until issues are fixed
'camelcase': 'off', //[2, {'properties': 'never'}],
camelcase: 'off', //[2, {'properties': 'never'}],
'no-unused-vars': 'off', //[2, { 'argsIgnorePattern': '^_' }],
'quotes': 'off', //[2, 'single', 'avoid-escape'],
}
quotes: 'off', //[2, 'single', 'avoid-escape'],
},
},
{
ignores: ['dist', 'examples', 'node_modules', 'vendor'],
}
},
]);
6 changes: 4 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"mocha": "^11.1.0",
"nock": "^11.9.1",
"node-libs-browser": "^0.5.2",
"prettier": "^3.2.5",
"prettier": "^3.6.2",
"sinon": "^8.1.1",
"webpack": "^5.98.0",
"webpack-cli": "^6.0.1",
Expand All @@ -114,6 +114,8 @@
"test:wtr": "web-test-runner",
"test:wtr:watch": "web-test-runner --watch",
"lint": "./node_modules/.bin/eslint .",
"format": "prettier --write \"**/*.{js,cjs,mjs,md,json,yml,yaml}\"",
"format:check": "prettier --check \"**/*.{js,cjs,mjs,md,json,yml,yaml}\"",
"pack": "node scripts/pack.js",
"validate": "npm run validate:es5 && npm run validate:examples",
"validate:es5": "es-check es5 './dist/**/*.js' --verbose",
Expand Down
4 changes: 2 additions & 2 deletions prettier.config.cjs → prettier.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// https://prettier.io/docs/en/options.html
/**
* @type {import('prettier').Config}
*/
module.exports = {
trailingComma: 'all',
export default {
singleQuote: true,
};
Loading