Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-aether

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-aether - npm Package Compare versions

Comparing version 1.5.3 to 2.0.0

index.d.ts

29

default.js

@@ -1,15 +0,20 @@

module.exports = {
"extends": "eslint:recommended",
"env": {
"es2024": true,
"browser": true,
"worker": true,
"jquery": true,
"node": true
import js from "@eslint/js";
import globals from "globals";
export default {
"files": [
"**/*.js",
"**/*.ts",
],
"languageOptions": {
"globals": {
...globals.browser,
...globals.es2025,
...globals.jquery,
...globals.node,
...globals.worker
}
},
"parserOptions": {
"sourceType": "module",
"impliedStrict": true
},
"rules": {
...js.configs.recommended.rules,
"array-bracket-spacing": ["warn", "never"],

@@ -16,0 +21,0 @@ "block-spacing": ["warn", "always"],

@@ -1,1 +0,7 @@

module.exports = require("./default.js");
import defaultConfig from "./default.js";
import tsConfig from "./typescript.js";
export default [
defaultConfig,
tsConfig
];
{
"name": "eslint-config-aether",
"version": "1.5.3",
"version": "2.0.0",
"description": "A custom code style for ESLint.",
"homepage": "https://github.com/vanruesc/eslint-config-aether",
"main": "index.js",
"main": "./index.js",
"license": "Zlib",
"type": "module",
"exports": {
".": {
"types": "./index.d.ts",
"default": "./index.js"
}
},
"keywords": [
"code",
"style",
"syntax",
"checking",
"eslint",
"config",
"eslintconfig",
"lint",
"hint",
"style",
"syntax",
"check",
"typescript",

@@ -33,6 +39,15 @@ "ts"

"index.js",
"typescript.js",
"typescript-basic.js"
"index.d.ts",
"typescript.js"
],
"scripts": {}
"scripts": {},
"peerDependencies": {
"eslint": "9.x.x"
},
"dependencies": {
"@typescript-eslint/eslint-plugin": "8.x.x",
"@typescript-eslint/parser": "8.x.x",
"@stylistic/eslint-plugin": "2.x.x",
"globals": "15.x.x"
}
}

@@ -32,3 +32,2 @@ # Eslint Config Aether

## Installation

@@ -40,40 +39,9 @@

This package includes optional configurations for TypeScript which require the TypeScript ESLint [plugin](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin) and [parser](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser):
```sh
npm install @typescript-eslint/eslint-plugin
npm install @typescript-eslint/parser
```
## Included Configurations
The `aether` configuration is intended to be used for JavaScript projects, `aether/typescript-basic` is a compatibility configuration for TypeScript projects and `aether/typescript` adds rules that rely on type checking.
| Config | Parent Configs |
|---------------------------|----------------------------------------------------------------------------------|
| `aether` | `eslint:recommended` |
| `aether/typescript` | `aether`, `plugin:@typescript-eslint/eslint-recommended-requiring-type-checking` |
| `aether/typescript-basic` | `aether`, `plugin:@typescript-eslint/eslint-recommended` |
## Usage
Note: The config `aether/typescript` sets `parserOptions.project` to `"tsconfig.json"` by default.
#### eslint.config.js
#### package.json
```json
{
"eslintConfig": {
"extends": "aether/typescript"
}
}
```js
import aether from "eslint-config-aether";
export default [...aether];
```
#### .eslintrc
```json
{
"extends": "aether/typescript"
}
```

@@ -1,55 +0,83 @@

module.exports = require("./typescript-basic.js");
import tsParser from "@typescript-eslint/parser";
import ts from "@typescript-eslint/eslint-plugin";
import stylistic from "@stylistic/eslint-plugin";
module.exports.extends.push(
"plugin:@typescript-eslint/recommended-requiring-type-checking"
);
Object.assign(module.exports.rules, {
"camelcase": "off",
"no-underscore-dangle": "off",
"@typescript-eslint/naming-convention": ["warn",
{
"selector": "default",
"format": ["camelCase"]
},
{
"selector": ["import"],
"format": ["camelCase", "PascalCase"]
},
{
"selector": ["variable", "accessor"],
"format": ["camelCase", "UPPER_CASE"]
},
{
"selector": ["parameter", "property"],
"format": ["camelCase"],
"leadingUnderscore": "allow"
},
{
"selector": "classProperty",
"modifiers": ["static", "readonly"],
"format": ["camelCase", "PascalCase", "UPPER_CASE"],
"leadingUnderscore": "forbid"
},
{
"selector": "typeLike",
"format": ["PascalCase"]
},
{
"selector": "enumMember",
"format": ["UPPER_CASE"]
},
{
"selector": ["objectLiteralProperty", "objectLiteralMethod"],
"format": null
},
{
"selector": "interface",
"format": ["PascalCase"],
"custom": {
"regex": "^I[A-Z]",
"match": false
export default {
"files": [
"**/*.ts",
],
"plugins": {
"@typescript-eslint": ts,
"@stylistic": stylistic,
},
"languageOptions": {
"parser": tsParser,
"parserOptions": {
"project": ["tsconfig.json"]
}
},
"rules": {
...ts.configs["recommended-requiring-type-checking"].rules,
...ts.configs["stylistic-type-checked"].rules,
"camelcase": "off",
"indent": "off",
"no-undef": "off",
"no-underscore-dangle": "off",
"no-unused-vars": "off",
"@stylistic/indent": ["warn", "tab", {
"SwitchCase": 1
}],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unused-vars": ["warn", {
"vars": "all",
"args": "none"
}],
"@typescript-eslint/prefer-optional-chain": "off",
"@typescript-eslint/strict-boolean-expressions": "error",
"@typescript-eslint/naming-convention": ["warn",
{
"selector": "default",
"format": ["camelCase"]
},
{
"selector": ["import"],
"format": ["camelCase", "PascalCase"]
},
{
"selector": ["variable", "accessor"],
"format": ["camelCase", "UPPER_CASE"]
},
{
"selector": ["parameter", "property"],
"format": ["camelCase"],
"leadingUnderscore": "allow"
},
{
"selector": "classProperty",
"modifiers": ["static", "readonly"],
"format": ["camelCase", "PascalCase", "UPPER_CASE"],
"leadingUnderscore": "forbid"
},
{
"selector": "typeLike",
"format": ["PascalCase"]
},
{
"selector": "enumMember",
"format": ["UPPER_CASE"]
},
{
"selector": ["objectLiteralProperty", "objectLiteralMethod"],
"format": null
},
{
"selector": "interface",
"format": ["PascalCase"],
"custom": {
"regex": "^I[A-Z]",
"match": false
}
}
}
]
});
]
}
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc