epaew / eslint-plugin-filenames-simple Goto Github PK
View Code? Open in Web Editor NEWAn ESLint plugin to check filenames with simple configuration
License: MIT License
An ESLint plugin to check filenames with simple configuration
License: MIT License
error [email protected]: The engine "node" is incompatible with this module. Expected version "^14.17.0 || ^16.0.0 || ^18.0.0". Got "20.0.0"
error Found incompatible module.
Node version 20 to be supported
Try to add to any node v20 package
Run ESLint and then finish successfully.
Failed to run ESLint.
$ eslint .
Oops! Something went wrong! :(
ESLint: 7.1.0
TypeError: declarationParser(...) is not a function or its return value is not iterable
Occurred while linting /home/epaew/workspace/eslint-plugin-filenames-simple/types.ts:1
...
export type types = {}
---
root: true
env:
es2017: true
node: true
extends:
- plugin:filenames-simple/recommended
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: 2019
sourceType: module
ESLint detects the warning The export name must match the filename. You need to rename to EstreeParser or estreeParser filenames-simple/named-export
with the following code.
export class ESTreeParser {
...
No warning is detected.
Add any other context about the problem here.
/<private>/components/admin-section/section-crumb/section-crumb.component.ts
20:1 warning The filename must follow the rule: 'kebab-case' filenames-simple/naming-convention
/<private>/components/admin-section/section-menu/section-menu-item.component.ts
28:1 warning The filename must follow the rule: 'kebab-case' filenames-simple/naming-convention
--
/<private>/components/regions/region-remove-dialog/region-remove-dialog.component.ts
6:5 warning The filename must follow the rule: 'kebab-case' filenames-simple/naming-convention
Lint warnings found in the listed files.
Not fails.
$ pnpm ls | grep eslint
@angular-eslint/builder 15.2.0
@angular-eslint/eslint-plugin 15.2.0
@angular-eslint/eslint-plugin-template 15.2.0
@angular-eslint/schematics 15.2.0
@angular-eslint/template-parser 15.2.0
@typescript-eslint/eslint-plugin 5.59.2
@typescript-eslint/parser 5.59.2
eslint 8.39.0
eslint-plugin-filenames-simple 0.9.0
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"plugins": [
"filenames-simple"
],
"rules": {
"filenames-simple/naming-convention": ["warn", { "rule": "kebab-case" , "excepts": ["threeBSP", "vertexType"]}]
},
...
I would like to use
"filenames-simple/naming-convention": ["error", {
"rule": "kebab-case",
"excepts": ["**/engines/**/properties/*.ts"]
}]
is that possible, if not please add
The excepts attribute is not working with regex.
ignorePattern.map(pattern => new RegExp(
^${pattern}$))
there is unwanted $ at the beginning of the regex, the $ sign is only to match the last char.
Should be ignorePattern.map(pattern => new RegExp(
^{pattern}$))
and match any regex.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.