rule canonical/filename-match-regex: allow -

This commit is contained in:
vchikalkin 2024-11-28 11:39:02 +03:00
parent e5aac3db42
commit 37e5969f56
2 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@vchikalkin/eslint-config-awesome", "name": "@vchikalkin/eslint-config-awesome",
"version": "2.0.4", "version": "2.0.5",
"license": "MIT", "license": "MIT",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {

View File

@ -3,6 +3,13 @@ module.exports = {
name: 'Common rules override', name: 'Common rules override',
rules: { rules: {
'canonical/filename-match-exported': 'off', 'canonical/filename-match-exported': 'off',
'canonical/filename-match-regex': [
1,
{
ignoreExporting: false,
regex: '^[A-Za-z]+(?:[A-Za-z0-9-]*\\.[A-Za-z0-9-]+)*\\d*$',
},
],
'func-style': [ 'func-style': [
'warn', 'warn',
'declaration', 'declaration',