Socket
Socket
Sign inDemoInstall

@skyscanner/eslint-config-skyscanner

Package Overview
Dependencies
Maintainers
10
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@skyscanner/eslint-config-skyscanner - npm Package Versions

1245

15.0.0-beta.2

Diff

dfraser
published 15.0.0-beta.1 •

dfraser
published 15.0.0-beta.0 •

dfraser
published 14.0.1 •

Changelog

Source

14.0.1

  • Bump lint-staged from 13.2.2 to 13.2.3
  • Bump @typescript-eslint/parser from 5.59.11 to 5.62.0
dfraser
published 14.0.0 •

Changelog

Source

14.0.0

Updated

  • Update from babel-eslint to @babel/eslint-parser

babel-eslint was deprecated on July 31, 2020 in favour of the package from Babel's main mono repo; @babel/eslint-parser.

If using the standard Skyscanner tool chain as described in our Production Standards then for the majority of consumers this will be a patch level change.

However, if your repository is using non-standard presets then some additional configuration may be required.

<details> <summary>Upgrade Details</summary>

Parser

eslint-config-skyscanner sets

parser: '@babel/eslint-parser',

by default, and overrides this for .ts?(x) files to

parser: '@typescript-eslint/parser',

If you were previous declaring parser explicitly in your eslintrc this will need to be updated, or removed (to inherit the behaviour as above).

Parser Options

For JavaScript eslint-config-skyscanner sets

  parserOptions: {
    requireConfigFile: false,
    babelOptions: {
      presets: ['@babel/preset-react'],
    },
  },

and for .ts?(x)

plugins: ['@typescript-eslint'],

This will not require a Babel config file, but if one is present will use it by default. It includes support for React syntax and TypeScript by default.

If you have extended your project beyond this to non-standard Skyscanner syntax, and this is not in your root Babel config, then you will need to override these settings in your eslintrc for Babel to be able to parse your code while ESLint runs.

https://github.com/babel/babel/tree/main/eslint/babel-eslint-parser#additional-parser-configuration

</details>
dfraser
published 13.3.0-beta.0 •

dfraser
published 13.2.1 •

Changelog

Source

13.2.1

Updated

  • Bump @typescript-eslint/parser from 5.50.0 to 5.59.8
  • Bump @typescript-eslint/eslint-plugin from 5.53.0 to 5.59.9
  • Bump lint-staged from 13.0.3 to 13.2.2
  • Bump jest from 29.4.3 to 29.5.0
  • Bump eslint-plugin-sort-destructure-keys from 1.4.0 to 1.5.0
dfraser
published 13.2.0 •

Changelog

Source

13.2.0

Updated

  • Bump jest from 27.5.1 to 29.4.3
  • Bump husky from 8.0.1 to 8.0.3
  • Bump eslint-plugin-jsx-a11y from 6.5.1 to 6.7.1
  • Bump prettier from 2.7.1 to 2.8.4
  • Bump eslint-plugin-react-hooks from 4.3.0 to 4.6.0
  • Bump @typescript-eslint/eslint-plugin from 5.49.0 to 5.53.0
  • Bump eslint-plugin-import from 2.25.4 to 2.27.5
dfraser
published 13.1.0 •

Changelog

Source

13.1.0

Updated

  • Bump @typescript-eslint/eslint-plugin from 5.40.1 to 5.49.0
  • Bump @typescript-eslint/parser from 5.41.0 to 5.50.0
  • Bump eslint-plugin-react from 7.30.1 to 7.32.2
ojcurt
published 13.0.0 •

Changelog

Source

13.0.0

Standardised React Imports

This ensures that the 'preferred style' is used for react imports:

Change all default React imports (i.e. import React from "react") to destructured named imports (ex. import { useState } from "react") which is the preferred style going into the future.

There is a codemod here created by the react team to change this in your codebase: https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html#removing-unused-react-imports

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