Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
fis3-lint-eslint-with-jsx
Advanced tools
基于 eslint 的 fis3 javascript linter。插件使用遵循 fis3 规则。
全局安装:
npm install -g fis3-lint-eslint
安装到当前目录:
npm install fis3-lint-eslint
example:
// fis-conf.js
var eslintConf = {
ignoreFiles: ['js/lib/**.js', 'js-conf.js'],
envs: ['browser', 'node'],
globals: ['$'],
rules: {
"semi": [1],
"no-undef": [2]
"no-use-before-define": [1],
"no-unused-vars": [1],
"no-eval": [1]
}
};
fis.match('js/*.js', {
lint: fis.plugin('eslint', eslintConf)
});
eslintConf
是对 eslint 的配置,参见 Configuring ESLint 。其属性类型参见 CLIEngine。
eslintConf.ignoreFiles
: 一个数组,配置应该忽略掉的文件,数组成员为文件的匹配模式。
{
"envs": ["browser", "node"],
"useEslintrc": false,
"ignoreFiles": ["fis-conf.js"],
"globals": [
"__inline",
"__uri",
"__RESOURCE_MAP__",
"fis"
],
"rules": {
"no-undef": [2],
"no-use-before-define": [1],
"no-unused-vars": [1],
"no-eval": [1],
"use-isnan": [2],
"valid-typeof": [2],
"no-unreachable": [1],
"no-dupe-args": [1],
"no-dupe-keys": [1]
}
}
当自定义配置的属性与默认配置属性相同时,除了 rules
和 globals
会叠加外,其他属性值均被覆盖。
默认配置规则(rules)说明:
规则错误级别说明:
0 :关闭当前规则
1 :warning
2 :error
更多规则请参见 eslint rules。
FAQs
A javascript linter plugin for fis3 based on eslint
We found that fis3-lint-eslint-with-jsx demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.