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.
@oursky/eslint-plugin
Advanced tools
- [Installation](#installation) - [How to use?](#how-to-use) * [TypeScript project (e.g. Node.js backend, Turbo & Stimulus frontend)](#typescript-project-eg-nodejs-backend-turbo--stimulus-frontend) * [React project in TypeScript](#react-project-in-typ
This plugin supports eslint 9 only.
npm install --save --save-dev eslint@9.x @oursky/eslint-plugin
The following examples are the contents of your eslint.config.mjs
.
import oursky from "@oursky/eslint-plugin";
const js = "src/**/*.{js,jsx,mjs,mjsx}";
const ts = "src/**/*.{ts,tsx,mts,mtsx}";
export default [
{
files: [ts],
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
{
files: [js, ts],
...oursky.configs.eslint,
},
{
files: [ts],
...oursky.configs.typescript,
},
{
files: [ts],
...oursky.configs.tsdoc,
},
{
files: [js, ts],
...oursky.configs.oursky,
},
];
import oursky from "@oursky/eslint-plugin";
const js = "src/**/*.{js,jsx,mjs,mjsx}";
const ts = "src/**/*.{ts,tsx,mts,mtsx}";
export default [
{
files: [ts],
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
{
files: [js, ts],
...oursky.configs.eslint,
},
{
files: [ts],
...oursky.configs.typescript,
},
{
files: [ts],
...oursky.configs.tsdoc,
},
{
files: [js, ts],
...oursky.configs.oursky,
},
{
files: [js, ts],
...oursky.configs.react,
},
{
files: [js, ts],
...oursky.configs["react-hooks"],
},
];
import oursky from "@oursky/eslint-plugin";
const js = "src/**/*.{js,jsx,mjs,mjsx}";
const ts = "src/**/*.{ts,tsx,mts,mtsx}";
export default [
{
files: [ts],
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
{
files: [js, ts],
...oursky.configs.eslint,
},
{
files: [ts],
...oursky.configs.typescript,
},
{
files: [ts],
...oursky.configs.tsdoc,
},
{
files: [js, ts],
...oursky.configs.oursky,
},
{
files: [js, ts],
...oursky.configs.react,
},
{
files: [js, ts],
...oursky.configs["react-hooks"],
},
{
files: [js, ts],
...oursky.configs["react-native"],
},
];
You are not supposed to have other use cases at Oursky. Open an issue if you want to discuss.
You use ordinary object rest spread to override.
import oursky from "@oursky/eslint-plugin";
const js = "src/**/*.{js,jsx,mjs,mjsx}";
const ts = "src/**/*.{ts,tsx,mts,mtsx}";
export default [
{
files: [ts],
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
{
files: [js, ts],
...oursky.configs.eslint,
},
{
files: [ts],
...oursky.configs.typescript,
rules: {
...oursky.configs.typescript.rules,
"@typescript-eslint/parameter-properties": "off",
"@typescript-eslint/no-restricted-types": [
"error",
{
"types": {
"BrokenType": "BrokenType is broken. Use NonBrokenType instead",
},
},
]
},
},
{
files: [ts],
...oursky.configs.tsdoc,
},
{
files: [js, ts],
...oursky.configs.oursky,
},
{
files: [js, ts],
...oursky.configs.react,
},
{
files: [js, ts],
...oursky.configs["react-hooks"],
},
{
files: [js, ts],
...oursky.configs["react-native"],
},
];
FAQs
- [Installation](#installation) - [How to use?](#how-to-use) * [TypeScript project (e.g. Node.js backend, Turbo & Stimulus frontend)](#typescript-project-eg-nodejs-backend-turbo--stimulus-frontend) * [React project in TypeScript](#react-project-in-typ
The npm package @oursky/eslint-plugin receives a total of 733 weekly downloads. As such, @oursky/eslint-plugin popularity was classified as not popular.
We found that @oursky/eslint-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.